From d0c97b98e477cfdf46ed7f36fd16c64f7943d551 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 17 Jan 2005 15:11:19 +0000 Subject: Committing Allegro -> SDL switch, hugely breaking the game. --- src/gui/inventory.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/gui/inventory.cpp') diff --git a/src/gui/inventory.cpp b/src/gui/inventory.cpp index dcaedc6f..c7f7aec8 100644 --- a/src/gui/inventory.cpp +++ b/src/gui/inventory.cpp @@ -55,12 +55,10 @@ void InventoryWindow::draw(gcn::Graphics *graphics) // Draw window graphics Window::draw(graphics); - BITMAP *target = ((Graphics*)graphics)->getTarget(); - for (int i = 0; i < INVENTORY_SIZE; i++) { if (items[i].quantity > 0) { if (items[i].id >= 501 && items[i].id <= 511) { - itemset->spriteset[items[i].id - 501]->draw(target, + itemset->spriteset[items[i].id - 501]->draw(screen, x + 24 * i, y + 26); } -- cgit v1.2.3-70-g09d2