diff src/SDL_compat.c @ 2862:929e7dd10031

Added current_w and current_h to SDL_VideoInfo for SDL 1.2 compatibility
author Sam Lantinga <slouken@libsdl.org>
date Fri, 12 Dec 2008 06:46:20 +0000
parents 99210400e8b9
children 762f0663c36a
line wrap: on
line diff
--- a/src/SDL_compat.c	Wed Dec 10 08:39:00 2008 +0000
+++ b/src/SDL_compat.c	Fri Dec 12 06:46:20 2008 +0000
@@ -76,6 +76,8 @@
         SDL_PixelFormatEnumToMasks(mode.format, &bpp, &Rmask, &Gmask, &Bmask,
                                    &Amask);
         info.vfmt = SDL_AllocFormat(bpp, Rmask, Gmask, Bmask, Amask);
+        info.current_w = mode.w;
+        info.current_h = mode.h;
     }
     return &info;
 }