changeset 3519:1374f9275de9

Fixed compiling the D3D renderer
author Sam Lantinga <slouken@libsdl.org>
date Fri, 04 Dec 2009 08:26:32 +0000
parents abefdc334970
children 83518f8fcd61
files src/video/win32/SDL_d3drender.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }