785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
|
break;
}
SDL_UnlockSurface(screen);
}
int modal_draw_popup(const unsigned char*txt) {
SDL_Event ev;
SDL_Rect r;
r.x=r.y=0;
r.w=screen->w;
r.h=4;
SDL_FillRect(screen,&r,0xFE);
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);
|
>
>
|
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
|
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);
|