Mercurial > sdl-ios-xcode
diff src/video/win32/SDL_win32gamma.c @ 3500:4b594623401b
Work in progress on multi-display support:
* Added display parameter to many internal functions so video modes can be set on displays that aren't the public current one.
* The fullscreen mode is associated with fullscreen windows - not displays, so different windows more naturally have a mode associated with them based on their width and height. It's no longer necessary to specify a fullscreen mode, a default one will be picked automatically for fullscreen windows.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 01 Dec 2009 05:57:15 +0000 |
parents | 7f684f249ec9 |
children | f7b03b6838cb |
line wrap: on
line diff
--- a/src/video/win32/SDL_win32gamma.c Mon Nov 30 21:04:25 2009 +0000 +++ b/src/video/win32/SDL_win32gamma.c Tue Dec 01 05:57:15 2009 +0000 @@ -25,12 +25,12 @@ int -WIN_SetDisplayGammaRamp(_THIS, Uint16 * ramp) +WIN_SetDisplayGammaRamp(_THIS, SDL_VideoDisplay * display, Uint16 * ramp) { #ifdef _WIN32_WCE return -1; #else - SDL_DisplayData *data = (SDL_DisplayData *) SDL_CurrentDisplay.driverdata; + SDL_DisplayData *data = (SDL_DisplayData *) display->driverdata; HDC hdc; BOOL succeeded = FALSE; @@ -47,12 +47,12 @@ } int -WIN_GetDisplayGammaRamp(_THIS, Uint16 * ramp) +WIN_GetDisplayGammaRamp(_THIS, SDL_VideoDisplay * display, Uint16 * ramp) { #ifdef _WIN32_WCE return -1; #else - SDL_DisplayData *data = (SDL_DisplayData *) SDL_CurrentDisplay.driverdata; + SDL_DisplayData *data = (SDL_DisplayData *) display->driverdata; HDC hdc; BOOL succeeded = FALSE;