comparison src/video/windows/SDL_windowswindow.c @ 5090:455bc74f7034

Fixed bug #1100 Test the video features with #if instead of #ifdef
author Sam Lantinga <slouken@libsdl.org>
date Mon, 24 Jan 2011 17:38:18 -0800
parents c2539ff054c8
children 57851a238c8f
comparison
equal deleted inserted replaced
5089:b4b0e9f1669c 5090:455bc74f7034
241 241
242 if (SetupWindowData(_this, window, hwnd, SDL_TRUE) < 0) { 242 if (SetupWindowData(_this, window, hwnd, SDL_TRUE) < 0) {
243 DestroyWindow(hwnd); 243 DestroyWindow(hwnd);
244 return -1; 244 return -1;
245 } 245 }
246 #ifdef SDL_VIDEO_OPENGL_WGL 246 #if SDL_VIDEO_OPENGL_WGL
247 if (window->flags & SDL_WINDOW_OPENGL) { 247 if (window->flags & SDL_WINDOW_OPENGL) {
248 if (WIN_GL_SetupWindow(_this, window) < 0) { 248 if (WIN_GL_SetupWindow(_this, window) < 0) {
249 WIN_DestroyWindow(_this, window); 249 WIN_DestroyWindow(_this, window);
250 return -1; 250 return -1;
251 } 251 }