Mercurial > sdl-ios-xcode
comparison src/video/SDL_video.c @ 1719:5b9f50c957ed SDL-1.3
You can now create multiple windows on Win32
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 28 Jun 2006 08:12:07 +0000 |
parents | 931d111e737a |
children | a1ebb17f9c52 |
comparison
equal
deleted
inserted
replaced
1718:ed4d4f1ea201 | 1719:5b9f50c957ed |
---|---|
645 | 645 |
646 SDL_WindowID | 646 SDL_WindowID |
647 SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags) | 647 SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags) |
648 { | 648 { |
649 const Uint32 allowed_flags = (SDL_WINDOW_FULLSCREEN | | 649 const Uint32 allowed_flags = (SDL_WINDOW_FULLSCREEN | |
650 SDL_WINDOW_OPENGL | | |
651 SDL_WINDOW_SHOWN | | |
650 SDL_WINDOW_BORDERLESS | | 652 SDL_WINDOW_BORDERLESS | |
651 SDL_WINDOW_SHOWN | | |
652 SDL_WINDOW_OPENGL | | |
653 SDL_WINDOW_RESIZABLE | | 653 SDL_WINDOW_RESIZABLE | |
654 SDL_WINDOW_MAXIMIZED | | 654 SDL_WINDOW_MAXIMIZED | |
655 SDL_WINDOW_MINIMIZED | | 655 SDL_WINDOW_MINIMIZED | |
656 SDL_WINDOW_INPUT_GRABBED); | 656 SDL_WINDOW_INPUT_GRABBED); |
657 SDL_Window window; | 657 SDL_Window window; |
840 | 840 |
841 if (!window) { | 841 if (!window) { |
842 return; | 842 return; |
843 } | 843 } |
844 | 844 |
845 window->x = x; | 845 if (x != SDL_WINDOWPOS_UNDEFINED) { |
846 window->y = y; | 846 window->x = x; |
847 } | |
848 if (y != SDL_WINDOWPOS_UNDEFINED) { | |
849 window->y = y; | |
850 } | |
847 | 851 |
848 if (_this->SetWindowPosition) { | 852 if (_this->SetWindowPosition) { |
849 _this->SetWindowPosition(_this, window); | 853 _this->SetWindowPosition(_this, window); |
850 } | 854 } |
851 } | 855 } |