From 9d7cfe5cd8cc5ba12b544c0da2e8d3d1f84133fa Mon Sep 17 00:00:00 2001 From: Bendegúz Nagy Date: Fri, 26 Aug 2016 22:35:29 +0200 Subject: DM: Add several functions realted to text display Add F0290_CHAMPION_DrawHealthStaminaManaValues, F0289_CHAMPION_DrawHealthOrStaminaOrManaValue, F0288_CHAMPION_GetStringFromInteger, F0052_TEXT_PrintToViewport, swap warning for real code, expand viewport fields with width, height, remove self-inclusion in dungeonman.h, remove extra black line when loading fonts, fix alignment error in TextMan::printTextToBitmap --- engines/dm/gfx.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/dm/gfx.h') diff --git a/engines/dm/gfx.h b/engines/dm/gfx.h index e2f30f339c..ed246de912 100644 --- a/engines/dm/gfx.h +++ b/engines/dm/gfx.h @@ -7,6 +7,7 @@ namespace DM { + enum ViewCell { kViewCellFronLeft = 0, // @ C00_VIEW_CELL_FRONT_LEFT kViewCellFrontRight = 1, // @ C01_VIEW_CELL_FRONT_RIGHT @@ -144,9 +145,10 @@ enum Color { kColorWhite = 15 }; + struct Viewport { - // TODO: should probably add width and height, seems redundant right meow uint16 _posX, _posY; + uint16 _width, _height; }; struct CreatureAspect { -- cgit v1.2.3