Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed compiling the D3D renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 4, 2009
1 parent fc968ba commit c1d9490
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/video/win32/SDL_d3drender.c
Expand Up @@ -391,7 +391,7 @@ D3D_CreateRenderer(SDL_Window * window, Uint32 flags)
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;
}
Expand All @@ -411,7 +411,7 @@ D3D_CreateRenderer(SDL_Window * window, Uint32 flags)
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;
Expand Down Expand Up @@ -550,7 +550,7 @@ D3D_DisplayModeChanged(SDL_Renderer * renderer)
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;
}
Expand Down

0 comments on commit c1d9490

Please sign in to comment.