/* initialise the dialog */
- set_clip_rect(screen, 0, 0, SCREEN_W-1, SCREEN_H-1);
- set_clip_state(screen, TRUE);
+ set_clip_rect(get_gui_bitmap(), 0, 0, SCREEN_W-1, SCREEN_H-1);
+ set_clip_state(get_gui_bitmap(), TRUE);
player->res |= dialog_message(dialog, MSG_START, 0, &player->obj);
@@ -1470,7 +1488,7 @@
x1 = x+4;
/* the initial blank bit */
- rectfill(screen, x+2, y1, x1-1, y1+text_height(font), deselect);
+ rectfill(get_gui_bitmap(), x+2, y1, x1-1, y1+text_height(font), deselect);
/* print up to the marked character */
while (printed != scanned) {
@@ -1486,7 +1504,7 @@
case '\t':
for (i=0; i<tabsize; i++) {
usetc(s+usetc(s, ' '), 0);
- textout_ex(screen, font, s, x1, y1, fg, deselect);
+ textout_ex(get_gui_bitmap(), font, s, x1, y1, fg, deselect);
x1 += text_length(font, s);
}
break;
@@ -1495,7 +1513,7 @@
default:
if (printed != ignore) {
usetc(s+usetc(s, ugetc(printed)), 0);
- textout_ex(screen, font, s, x1, y1, fg, deselect);
+ textout_ex(get_gui_bitmap(), font, s, x1, y1, fg, deselect);
x1 += text_length(font, s);
}
}
@@ -1505,7 +1523,7 @@
}
/* the last blank bit */
if (x1 <= x+w-3)
- rectfill(screen, x1, y1, x+w-3, y1+text_height(font)-1, deselect);
+ rectfill(get_gui_bitmap(), x1, y1, x+w-3, y1+text_height(font)-1, deselect);
/* print the line end */
y1 += text_height(font);
@@ -1519,7 +1537,7 @@
if (!ugetc(printed)) {
/* the under blank bit */
if (draw)
- rectfill(screen, x+1, y1, x+w-3, y+h-1, deselect);
+ rectfill(get_gui_bitmap(), x+1, y1, x+w-3, y+h-1, deselect);
/* tell how many lines we found */
*listsize = line;