aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/font.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/graphics/font.h')
-rw-r--r--engines/sci/graphics/font.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/engines/sci/graphics/font.h b/engines/sci/graphics/font.h
index b79fb2f0ba..4e26510804 100644
--- a/engines/sci/graphics/font.h
+++ b/engines/sci/graphics/font.h
@@ -24,6 +24,7 @@
#define SCI_GRAPHICS_FONT_H
#include "sci/graphics/helpers.h"
+#include "sci/util.h"
namespace Sci {
@@ -51,8 +52,8 @@ public:
~GfxFontFromResource();
GuiResourceId getResourceId();
- byte getHeight();
- byte getCharWidth(uint16 chr);
+ uint8 getHeight();
+ uint8 getCharWidth(uint16 chr);
void draw(uint16 chr, int16 top, int16 left, byte color, bool greyedOutput);
#ifdef ENABLE_SCI32
// SCI2/2.1 equivalent
@@ -60,23 +61,21 @@ public:
#endif
private:
- byte getCharHeight(uint16 chr);
- byte *getCharData(uint16 chr);
+ uint8 getCharHeight(uint16 chr);
+ SciSpan<const byte> getCharData(uint16 chr);
ResourceManager *_resMan;
GfxScreen *_screen;
Resource *_resource;
GuiResourceId _resourceId;
- byte *_resourceData;
struct Charinfo {
- byte width;
- byte height;
+ uint8 width, height;
int16 offset;
};
- byte _fontHeight;
+ uint8 _fontHeight;
uint16 _numChars;
Charinfo *_chars;
};