changeset 3951:e1e525d96838 SDL-1.2

Patch to allow DirectFB target to report a correct screen size. Fixes Bugzilla #399.
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 04 Jun 2007 11:15:58 +0000
parents 9d9e15ab1697
children e3c28caea46d
files src/video/directfb/SDL_DirectFB_video.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;