From f05f5348b7d6da6404a29d6a6f6b4452ffd5735b Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Wed, 15 Dec 2010 07:35:20 +0000 Subject: HUGO: No longer shift down inventory by 8 pixels svn-id: r54920 --- engines/hugo/game.h | 2 +- engines/hugo/inventory.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/hugo/game.h b/engines/hugo/game.h index b0bfe82e0b..488f667bee 100644 --- a/engines/hugo/game.h +++ b/engines/hugo/game.h @@ -66,7 +66,7 @@ namespace Hugo { #define VIEW_DY 184 // Height of window view #define INV_DX 32 // Width of an inventory icon #define INV_DY 32 // Height of inventory icon -#define DIBOFF_Y 8 // Offset into dib SrcY (old status line area) +#define DIBOFF_Y 0 // Offset into dib SrcY (old status line area). In original game: 8 #define OVL_SIZE (XBYTES * YPIX) // Size of an overlay file #define MAX_SEQUENCES 4 // Number of sequences of images in object #define MAX_CHARS (XBYTES - 2) // Max length of user input line diff --git a/engines/hugo/inventory.cpp b/engines/hugo/inventory.cpp index 43a05d1d86..19995d3650 100644 --- a/engines/hugo/inventory.cpp +++ b/engines/hugo/inventory.cpp @@ -207,7 +207,7 @@ void InventoryHandler::runInventory() { } gameStatus.inventoryHeight += STEP_DY; // Move the icon bar down - if (gameStatus.inventoryHeight >= INV_DY) // Limit travel + if (gameStatus.inventoryHeight > INV_DY) // Limit travel gameStatus.inventoryHeight = INV_DY; // Move visible portion to _frontBuffer, display results -- cgit v1.2.3