src/video/wincommon/SDL_syswm.c
changeset 439 3ac8344e3872
parent 438 f9c5f135a8b9
child 1152 51a8702d8ecd
equal deleted inserted replaced
438:f9c5f135a8b9 439:3ac8344e3872
    32 #include "SDL_version.h"
    32 #include "SDL_version.h"
    33 #include "SDL_error.h"
    33 #include "SDL_error.h"
    34 #include "SDL_video.h"
    34 #include "SDL_video.h"
    35 #include "SDL_syswm.h"
    35 #include "SDL_syswm.h"
    36 #include "SDL_syswm_c.h"
    36 #include "SDL_syswm_c.h"
       
    37 #include "SDL_wingl_c.h"
    37 #include "SDL_pixels_c.h"
    38 #include "SDL_pixels_c.h"
    38 
    39 
    39 #ifdef _WIN32_WCE
    40 #ifdef _WIN32_WCE
    40 #define DISABLE_ICON_SUPPORT
    41 #define DISABLE_ICON_SUPPORT
    41 #endif
    42 #endif
   268 	if ( info->version.major <= SDL_MAJOR_VERSION ) {
   269 	if ( info->version.major <= SDL_MAJOR_VERSION ) {
   269 		info->window = SDL_Window;
   270 		info->window = SDL_Window;
   270 		if ( SDL_VERSIONNUM(info->version.major,
   271 		if ( SDL_VERSIONNUM(info->version.major,
   271 		                    info->version.minor,
   272 		                    info->version.minor,
   272 		                    info->version.patch) >=
   273 		                    info->version.patch) >=
   273 		     SDL_VERSION(1, 2, 5) ) {
   274 		     SDL_VERSIONNUM(1, 2, 5) ) {
   274 #ifdef HAVE_OPENGL
   275 #ifdef HAVE_OPENGL
   275 			info->hglrc = GL_hrc;
   276 			info->hglrc = GL_hrc;
   276 #else
   277 #else
   277 			info->hglrc = NULL;
   278 			info->hglrc = NULL;
   278 #endif
   279 #endif