From e75c07d9a2a8d6e67d35d4699c2603abd81a4ca0 Mon Sep 17 00:00:00 2001 From: Bendegúz Nagy Date: Mon, 15 Aug 2016 12:48:51 +0200 Subject: DM: Fix no food and water bar graphs --- engines/dm/TODOs/todo.txt | 7 ++++--- engines/dm/inventory.cpp | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/engines/dm/TODOs/todo.txt b/engines/dm/TODOs/todo.txt index 1eafa4d80b..6a4429a5f3 100644 --- a/engines/dm/TODOs/todo.txt +++ b/engines/dm/TODOs/todo.txt @@ -1,6 +1,5 @@ Bugs: Display: - No food and water bar graphs Spellcasting tabs are displayed inproperly, switching between them is possible tho Cursor icons are drawn twice @@ -21,8 +20,10 @@ Todo: I forgot to add a bunch of warning for show/hide mouse pointer and other mouse functions Code stuff todo: - Complete stub methods + Complete stub methods(blitShrink, etc.) + Add scroller Add localization - Save file f433_processCommand140_saveGame fails silently + Save file f433_processCommand140_saveGame fails silently, add error checking + Clean up f113_drawField \ No newline at end of file diff --git a/engines/dm/inventory.cpp b/engines/dm/inventory.cpp index 6f4e4e49ae..c1798e9193 100644 --- a/engines/dm/inventory.cpp +++ b/engines/dm/inventory.cpp @@ -157,7 +157,7 @@ void InventoryMan::f343_drawPanelHorizontalBar(int16 x, int16 y, int16 pixelWidt box._y1 = y; box._y2 = box._y1 + 6; _vm->_displayMan->_g578_useByteBoxCoordinates = false; - _vm->_displayMan->D24_fillScreenBox(box, color); + _vm->_displayMan->f135_fillBoxBitmap(_vm->_displayMan->_g296_bitmapViewport, box, color, k112_byteWidthViewport, k136_heightViewport); } void InventoryMan::f344_drawPanelFoodOrWaterBar(int16 amount, int16 y, Color color) { -- cgit v1.2.3