summaryrefslogtreecommitdiff
path: root/src/interface.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-05-13 12:01:29 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-05-13 12:01:29 (GMT)
commit17229ead05caae32a0c7c6c7a553442abcb6aede (patch)
tree702931ea04f9131a9ec132afc4a346137c2846e7 /src/interface.c
parent58ea2b2acf2a959f286ed5ae996b6e6a74206e0d (diff)
downloadpowder-17229ead05caae32a0c7c6c7a553442abcb6aede.zip
powder-17229ead05caae32a0c7c6c7a553442abcb6aede.tar.gz
URI handling for MacOS
Diffstat (limited to 'src/interface.c')
-rw-r--r--src/interface.c12
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;