Mercurial > sdl-ios-xcode
diff src/video/windows/SDL_windowsclipboard.c @ 5255:f908e06b3c96
Fixed compiling on Windows
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 11 Feb 2011 10:13:30 -0800 |
parents | e8916fe9cfc8 |
children | b530ef003506 |
line wrap: on
line diff
--- a/src/video/windows/SDL_windowsclipboard.c Fri Feb 11 00:25:44 2011 -0800 +++ b/src/video/windows/SDL_windowsclipboard.c Fri Feb 11 10:13:30 2011 -0800 @@ -37,15 +37,11 @@ static HWND GetWindowHandle(_THIS) { - SDL_VideoDisplay *display; SDL_Window *window; - display = _this->displays; - if (display) { - window = display->windows; - if (window) { - return ((SDL_WindowData *) window->driverdata)->hwnd; - } + window = _this->windows; + if (window) { + return ((SDL_WindowData *) window->driverdata)->hwnd; } return NULL; }