summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorAlexander Baldeck <alexander@archlinux.org>2004-12-19 17:21:34 +0000
committerAlexander Baldeck <alexander@archlinux.org>2004-12-19 17:21:34 +0000
commita432321fb91bc0afbe802878fcd45adcee946a5b (patch)
tree6222ae0392064cc0250d41bc89bfc14b38892395 /src/gui/gui.cpp
parentdd06564ec071884d1980d74c96dc136fc6205e19 (diff)
downloadmana-a432321fb91bc0afbe802878fcd45adcee946a5b.tar.gz
mana-a432321fb91bc0afbe802878fcd45adcee946a5b.tar.bz2
mana-a432321fb91bc0afbe802878fcd45adcee946a5b.tar.xz
mana-a432321fb91bc0afbe802878fcd45adcee946a5b.zip
killed a few warnings about depcrated functions. mostly textprintf
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 270cbb5e..49bf35e3 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -1120,9 +1120,9 @@ int tmw_dialog_proc(int msg, DIALOG *d, int c) {
}
draw_skinned_rect(gui_bitmap, &gui_skin.dialog.bg, d->x, d->y, d->w, d->h);
rtm = text_mode(-1);
- textprintf_centre(gui_bitmap, font,
+ textprintf_centre_ex(gui_bitmap, font,
d->x + d->w/2,
- d->y + (gui_skin.dialog.bg.grid[1]->h - text_height(font))/2, d->fg, "%s", d->dp);
+ d->y + (gui_skin.dialog.bg.grid[1]->h - text_height(font))/2, d->fg, -1, "%s", d->dp);
text_mode(rtm);
break;
}