use physical device from framebuffer instead of hardcoded value, blit after compositing
authorFelix Domke <tmbinc@elitedvb.net>
Wed, 3 Jun 2009 12:50:54 +0000 (14:50 +0200)
committerFelix Domke <tmbinc@elitedvb.net>
Wed, 3 Jun 2009 12:57:55 +0000 (14:57 +0200)
lib/gdi/gfbdc.cpp

index d2f8dad..80dd247 100644 (file)
@@ -131,6 +131,7 @@ void gFBDC::exec(gOpcode *o)
 
                ++t;
 
+               fb->blit();
                fb->waitVSync();
                break;
        }
@@ -188,7 +189,7 @@ void gFBDC::setResolution(int xres, int yres)
        surface.data = fb->lfb;
        surface.offset = 0;
 
-       surface.data_phys = 50*1024*1024; // FIXME
+       surface.data_phys = fb->getPhysAddr();
 
        int fb_size = surface.stride * surface.y;