From 88ccf13d13802cff7a3207888c5e160d4fc2d292 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 4 Jun 2007 11:15:58 +0000 Subject: [PATCH] Patch to allow DirectFB target to report a correct screen size. Fixes Bugzilla #399. --HG-- branch : SDL-1.2 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402330 --- src/video/directfb/SDL_DirectFB_video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/directfb/SDL_DirectFB_video.c b/src/video/directfb/SDL_DirectFB_video.c index 696b5c3b1..5b592c1cb 100644 --- a/src/video/directfb/SDL_DirectFB_video.c +++ b/src/video/directfb/SDL_DirectFB_video.c @@ -460,6 +460,8 @@ int DirectFB_VideoInit(_THIS, SDL_PixelFormat *vformat) 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;