diff options
author | Alexander Baldeck <alexander@archlinux.org> | 2004-12-19 17:21:34 +0000 |
---|---|---|
committer | Alexander Baldeck <alexander@archlinux.org> | 2004-12-19 17:21:34 +0000 |
commit | a432321fb91bc0afbe802878fcd45adcee946a5b (patch) | |
tree | 6222ae0392064cc0250d41bc89bfc14b38892395 /src/gui/inventory.cpp | |
parent | dd06564ec071884d1980d74c96dc136fc6205e19 (diff) | |
download | mana-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/inventory.cpp')
-rw-r--r-- | src/gui/inventory.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/inventory.cpp b/src/gui/inventory.cpp index d82db607..807fae15 100644 --- a/src/gui/inventory.cpp +++ b/src/gui/inventory.cpp @@ -57,7 +57,7 @@ void TmwInventory::draw(BITMAP * buffer) { masked_blit((BITMAP *)itemset[items[i].id-500].dat, gui_bitmap, 0, 0, inventory_dialog[0].x+24*i, inventory_dialog[0].y+26, 22, 22); else masked_blit((BITMAP *)itemset[0].dat, gui_bitmap, 0, 0, inventory_dialog[0].x+24*i, inventory_dialog[0].y+26, 22, 22); - textprintf(gui_bitmap, font, inventory_dialog[0].x+24*i, inventory_dialog[0].y+44, makecol(0,0,0), "%i", items[i].quantity); + textprintf_ex(gui_bitmap, font, inventory_dialog[0].x+24*i, inventory_dialog[0].y+44, makecol(0,0,0), -1, "%i", items[i].quantity); } } } @@ -84,9 +84,9 @@ void TmwInventory::draw(BITMAP * buffer) { use_item(itemMeny_i,items[itemMeny_i].id); itemMeny = 0; } - textprintf(buffer, font, inventory_dialog[0].x+itemMeny_x, inventory_dialog[0].y+itemMeny_y, makecol(255,237,33), "Use item"); + textprintf_ex(buffer, font, inventory_dialog[0].x+itemMeny_x, inventory_dialog[0].y+itemMeny_y, makecol(255,237,33), -1, "Use item"); } else { - textprintf(buffer, font, inventory_dialog[0].x+itemMeny_x, inventory_dialog[0].y+itemMeny_y, MAKECOL_BLACK, "Use item"); + textprintf_ex(buffer, font, inventory_dialog[0].x+itemMeny_x, inventory_dialog[0].y+itemMeny_y, MAKECOL_BLACK, -1, "Use item"); } if(inventory_dialog[0].y+itemMeny_y+10 < mouse_y && inventory_dialog[0].y+itemMeny_y+20 > mouse_y) { if(mouse_b&1) @@ -94,9 +94,9 @@ void TmwInventory::draw(BITMAP * buffer) { drop_item(itemMeny_i,1); itemMeny = 0; } - textprintf(buffer, font, inventory_dialog[0].x+itemMeny_x, inventory_dialog[0].y+itemMeny_y+10, makecol(255,237,33), "Del item"); + textprintf_ex(buffer, font, inventory_dialog[0].x+itemMeny_x, inventory_dialog[0].y+itemMeny_y+10, makecol(255,237,33), -1, "Del item"); } else { - textprintf(buffer, font, inventory_dialog[0].x+itemMeny_x, inventory_dialog[0].y+itemMeny_y+10, MAKECOL_BLACK, "Del item"); + textprintf_ex(buffer, font, inventory_dialog[0].x+itemMeny_x, inventory_dialog[0].y+itemMeny_y+10, MAKECOL_BLACK, -1, "Del item"); } } |