Mercurial > sdl-ios-xcode
comparison src/video/windib/SDL_dibvideo.c @ 1280:f61f045343d3
Re-query the SDL_WINDOWID each time we initialize the video
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 29 Jan 2006 06:11:38 +0000 |
parents | 86d0d01290ea |
children | ea3888b472bf |
comparison
equal
deleted
inserted
replaced
1279:e867f327aa54 | 1280:f61f045343d3 |
---|---|
587 if (IsZoomed(SDL_Window)) style |= WS_MAXIMIZE; | 587 if (IsZoomed(SDL_Window)) style |= WS_MAXIMIZE; |
588 #endif | 588 #endif |
589 } | 589 } |
590 | 590 |
591 /* DJM: Don't piss of anyone who has setup his own window */ | 591 /* DJM: Don't piss of anyone who has setup his own window */ |
592 if ( SDL_windowid == NULL ) | 592 if ( !SDL_windowid ) |
593 SetWindowLong(SDL_Window, GWL_STYLE, style); | 593 SetWindowLong(SDL_Window, GWL_STYLE, style); |
594 | 594 |
595 /* Delete the old bitmap if necessary */ | 595 /* Delete the old bitmap if necessary */ |
596 if ( screen_bmp != NULL ) { | 596 if ( screen_bmp != NULL ) { |
597 DeleteObject(screen_bmp); | 597 DeleteObject(screen_bmp); |
663 video->flags |= SDL_HWPALETTE; | 663 video->flags |= SDL_HWPALETTE; |
664 } | 664 } |
665 } | 665 } |
666 | 666 |
667 /* Resize the window */ | 667 /* Resize the window */ |
668 if ( SDL_windowid == NULL ) { | 668 if ( !SDL_windowid ) { |
669 HWND top; | 669 HWND top; |
670 UINT swp_flags; | 670 UINT swp_flags; |
671 const char *window = getenv("SDL_VIDEO_WINDOW_POS"); | 671 const char *window = getenv("SDL_VIDEO_WINDOW_POS"); |
672 const char *center = getenv("SDL_VIDEO_CENTERED"); | 672 const char *center = getenv("SDL_VIDEO_CENTERED"); |
673 | 673 |