Mercurial > sdl-ios-xcode
comparison src/events/SDL_windowevents.c @ 1915:a228436a2404
Implemented multi-window OpenGL program with test framework.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 19 Jul 2006 04:24:41 +0000 |
parents | c121d94672cb |
children | db3ba6c0d0df |
comparison
equal
deleted
inserted
replaced
1914:051df511279c | 1915:a228436a2404 |
---|---|
58 return 0; | 58 return 0; |
59 } | 59 } |
60 if (data1 == window->x && data2 == window->y) { | 60 if (data1 == window->x && data2 == window->y) { |
61 return 0; | 61 return 0; |
62 } | 62 } |
63 window->x = data1; | |
64 window->y = data2; | |
63 break; | 65 break; |
64 case SDL_WINDOWEVENT_RESIZED: | 66 case SDL_WINDOWEVENT_RESIZED: |
65 if (window->flags & SDL_WINDOW_FULLSCREEN) { | 67 if (window->flags & SDL_WINDOW_FULLSCREEN) { |
66 return 0; | 68 return 0; |
67 } | 69 } |
68 if (data1 == window->w && data2 == window->h) { | 70 if (data1 == window->w && data2 == window->h) { |
69 return 0; | 71 return 0; |
70 } | 72 } |
73 window->w = data1; | |
74 window->h = data2; | |
71 break; | 75 break; |
72 case SDL_WINDOWEVENT_MINIMIZED: | 76 case SDL_WINDOWEVENT_MINIMIZED: |
73 if (window->flags & SDL_WINDOW_MINIMIZED) { | 77 if (window->flags & SDL_WINDOW_MINIMIZED) { |
74 return 0; | 78 return 0; |
75 } | 79 } |