Patch to allow DirectFB target to report a correct screen size. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Mon, 04 Jun 2007 11:15:58 +0000
branchSDL-1.2
changeset 3951 e1e525d96838
parent 3950 9d9e15ab1697
child 3952 e3c28caea46d
Patch to allow DirectFB target to report a correct screen size. Fixes Bugzilla #399.
src/video/directfb/SDL_DirectFB_video.c
--- a/src/video/directfb/SDL_DirectFB_video.c	Mon Jun 04 11:06:48 2007 +0000
+++ b/src/video/directfb/SDL_DirectFB_video.c	Mon Jun 04 11:15:58 2007 +0000
@@ -460,6 +460,8 @@
   this->info.blit_hw_A    = 1;
   this->info.blit_fill    = 1;
   this->info.video_mem    = caps.video_memory / 1024;
+  this->info.current_w    = dlc.width;  
+  this->info.current_h    = dlc.height;
 
   HIDDEN->initialized = 1;
   HIDDEN->dfb         = dfb;