diff options
Diffstat (limited to 'src/interface.c')
| -rw-r--r-- | src/interface.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/interface.c b/src/interface.c index 53fd481..0e31ffb 100644 --- a/src/interface.c +++ b/src/interface.c @@ -1298,7 +1298,7 @@ void info_box(pixel *vid_buf, char *msg) { int w = textwidth(msg)+16; int x0=(XRES-w)/2,y0=(YRES-24)/2; - + clearrect(vid_buf, x0-2, y0-2, w+4, 28); drawrect(vid_buf, x0, y0, w, 24, 192, 192, 192, 255); drawtext(vid_buf, x0+8, y0+8, msg, 192, 192, 240, 255); @@ -1310,6 +1310,16 @@ void info_box(pixel *vid_buf, char *msg) #endif } +void info_box_overlay(pixel *vid_buf, char *msg) +{ + int w = textwidth(msg)+16; + int x0=(XRES-w)/2,y0=(YRES-24)/2; + + clearrect(vid_buf, x0-2, y0-2, w+4, 28); + drawrect(vid_buf, x0, y0, w, 24, 192, 192, 192, 255); + drawtext(vid_buf, x0+8, y0+8, msg, 192, 192, 240, 255); +} + void copytext_ui(pixel *vid_buf, char *top, char *txt, char *copytxt) { int state = 0; |
