Fixed compiling the D3D renderer
authorSam Lantinga <slouken@libsdl.org>
Fri, 04 Dec 2009 08:26:32 +0000
changeset 3519 1374f9275de9
parent 3518 abefdc334970
child 3520 83518f8fcd61
Fixed compiling the D3D renderer
src/video/win32/SDL_d3drender.c
--- a/src/video/win32/SDL_d3drender.c	Thu Dec 03 08:43:12 2009 +0000
+++ b/src/video/win32/SDL_d3drender.c	Fri Dec 04 08:26:32 2009 +0000
@@ -391,7 +391,7 @@
     pparams.BackBufferHeight = window->h;
     if (window->flags & SDL_WINDOW_FULLSCREEN) {
         pparams.BackBufferFormat =
-            PixelFormatToD3DFMT(display->fullscreen_mode.format);
+            PixelFormatToD3DFMT(window->fullscreen_mode.format);
     } else {
         pparams.BackBufferFormat = D3DFMT_UNKNOWN;
     }
@@ -411,7 +411,7 @@
     if (window->flags & SDL_WINDOW_FULLSCREEN) {
         pparams.Windowed = FALSE;
         pparams.FullScreen_RefreshRateInHz =
-            display->fullscreen_mode.refresh_rate;
+            window->fullscreen_mode.refresh_rate;
     } else {
         pparams.Windowed = TRUE;
         pparams.FullScreen_RefreshRateInHz = 0;
@@ -550,7 +550,7 @@
     data->pparams.BackBufferHeight = window->h;
     if (window->flags & SDL_WINDOW_FULLSCREEN) {
         data->pparams.BackBufferFormat =
-            PixelFormatToD3DFMT(display->fullscreen_mode.format);
+            PixelFormatToD3DFMT(window->fullscreen_mode.format);
     } else {
         data->pparams.BackBufferFormat = D3DFMT_UNKNOWN;
     }