diff test/testvidinfo.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 01e29c3e9a29
children 59ff7a2beb57
line wrap: on
line diff
--- a/test/testvidinfo.c	Wed Dec 10 08:39:00 2008 +0000
+++ b/test/testvidinfo.c	Fri Dec 12 06:46:20 2008 +0000
@@ -520,6 +520,7 @@
     if (info->blit_fill) {
         printf("Color fills on hardware surfaces are accelerated\n");
     }
+    printf("Current resolution: %dx%d\n", info->current_w, info->current_h);
 #if 0
     if (argv[1] && (strcmp(argv[1], "-benchmark") == 0)) {
         RunVideoTests();