--- a/src/hbcore/image/hbeglstate.cpp Mon Apr 19 14:02:13 2010 +0300
+++ b/src/hbcore/image/hbeglstate.cpp Mon May 03 12:48:33 2010 +0300
@@ -34,40 +34,27 @@
EGLContext c,
EGLConfig cfg )
: refCount(0),
- init(0),
- background(0)
+ init(0)
+
{
- fgWatcher = HbForegroundWatcher::instance();
- connect(fgWatcher, SIGNAL(foregroundLost()),
- SLOT(handleForegroundLost()));
set(d, rs, ds, c, cfg);
}
HbEglStates::HbEglStates()
: refCount(0),
- init(0),
- background(0)
-{
- fgWatcher = HbForegroundWatcher::instance();
- connect(fgWatcher, SIGNAL(foregroundLost()),
- SLOT(handleForegroundLost()));
- reset();
+ init(0)
+
+{ reset();
}
void HbEglStates::handleForegroundLost()
{
reset();
- background = 1;
init = 0;
- HbNVGEnginePool::instance()->resetNVGEngine();
+ HbNvgEnginePool::instance()->resetNvgEngine();
clearImages();
}
-void HbEglStates::handleForegroundGained()
-{
- background = 0;
-}
-
void HbEglStates::clearImages()
{
if (!imageList.empty()) {