1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
|
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
|
-
-
-
-
-
-
-
|
break;
}
SDL_UnlockSurface(screen);
}
int modal_draw_popup(const unsigned char*txt) {
SDL_Event ev;
#if 0
SDL_Rect r;
r.x=r.y=0;
r.w=screen->w;
r.h=4;
SDL_FillRect(screen,&r,0xFE);
#endif
set_cursor(XC_iron_cross);
redraw:
draw_popup(txt);
SDL_Flip(screen);
while(SDL_WaitEvent(&ev)) switch(ev.type) {
case SDL_QUIT:
SDL_PushEvent(&ev);
|