diff options
Diffstat (limited to 'engines/sherlock/surface.h')
-rw-r--r-- | engines/sherlock/surface.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/sherlock/surface.h b/engines/sherlock/surface.h index dc2ba7b1d5..d42dd5c21e 100644 --- a/engines/sherlock/surface.h +++ b/engines/sherlock/surface.h @@ -26,6 +26,7 @@ #include "common/rect.h" #include "common/platform.h" #include "graphics/surface.h" +#include "sherlock/fonts.h" namespace Sherlock { @@ -33,7 +34,7 @@ namespace Sherlock { struct ImageFrame; -class Surface { +class Surface: public Fonts { private: bool _freePixels; @@ -70,6 +71,11 @@ protected: Graphics::Surface _surface; virtual void addDirtyRect(const Common::Rect &r) {} + + /** + * Draws the given string into the back buffer using the images stored in _font + */ + virtual void writeString(const Common::String &str, const Common::Point &pt, byte overrideColor); public: Surface(uint16 width, uint16 height, Common::Platform platform); Surface(); |