src/video/gem/SDL_gemevents.c
branchSDL-1.2
changeset 5867 94e0116059f4
parent 5649 02ab15cfa992
child 6137 4720145f848b
equal deleted inserted replaced
5864:f31019514269 5867:94e0116059f4
   171 	}
   171 	}
   172 }
   172 }
   173 
   173 
   174 static int do_messages(_THIS, short *message)
   174 static int do_messages(_THIS, short *message)
   175 {
   175 {
   176 	int quit, posted, check_mouse_mode;
   176 	int quit, check_mouse_mode;
   177 	short x2,y2,w2,h2;
   177 	short x2,y2,w2,h2;
   178 
   178 
   179 	quit = check_mouse_mode = 0;
   179 	quit = check_mouse_mode = 0;
   180 	switch (message[0]) {
   180 	switch (message[0]) {
   181 		case WM_CLOSED:
   181 		case WM_CLOSED:
   182 		case AP_TERM:    
   182 		case AP_TERM:    
   183 			posted = SDL_PrivateQuit();
   183 			SDL_PrivateQuit();
   184 			quit=1;
   184 			quit=1;
   185 			break;
   185 			break;
   186 		case WM_MOVED:
   186 		case WM_MOVED:
   187 			wind_set(message[3],WF_CURRXYWH,message[4],message[5],message[6],message[7]);
   187 			wind_set(message[3],WF_CURRXYWH,message[4],message[5],message[6],message[7]);
   188 			break;
   188 			break;