comparison src/events/SDL_resize.c @ 1190:173c063d4f55

OS/2 port! This was mostly, if not entirely, written by "Doodle" and "Caetano": doodle@scenergy.dfmk.hu daniel@caetano.eng.br --ryan.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 23 Nov 2005 07:29:56 +0000
parents b8d311d90021
children c9b51268668f
comparison
equal deleted inserted replaced
1189:c96b326b90ba 1190:173c063d4f55
43 { 43 {
44 int posted; 44 int posted;
45 SDL_Event events[32]; 45 SDL_Event events[32];
46 46
47 /* See if this event would change the video surface */ 47 /* See if this event would change the video surface */
48 if ( !w || !h || 48 if ( !w || !h
49 ((last_resize.w == w) && (last_resize.h == h)) ) { 49 #ifndef __OS2__
50 || ((last_resize.w == w) && (last_resize.h == h))
51 #endif
52 ) {
50 return(0); 53 return(0);
51 } 54 }
52 last_resize.w = w; 55 last_resize.w = w;
53 last_resize.h = h; 56 last_resize.h = h;
54 if ( ! SDL_VideoSurface || 57 if ( ! SDL_VideoSurface ||