From 1ae539d44de7af5e035161167e54f5a303356a7d Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Thu, 2 Feb 2017 09:47:35 +0100 Subject: ADL: Increase robustness of graphics code --- engines/adl/graphics.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/adl/graphics.h') diff --git a/engines/adl/graphics.h b/engines/adl/graphics.h index f05045a4dc..c0d1780a33 100644 --- a/engines/adl/graphics.h +++ b/engines/adl/graphics.h @@ -38,12 +38,14 @@ public: virtual ~GraphicsMan() { } virtual void drawPic(Common::SeekableReadStream &pic, const Common::Point &pos) = 0; void clearScreen() const; + void putPixel(const Common::Point &p, byte color) const; protected: - GraphicsMan(Display &display) : _display(display) { } + GraphicsMan(Display &display) : _bounds(280, 160), _display(display) { } void drawLine(const Common::Point &p1, const Common::Point &p2, byte color) const; Display &_display; + Common::Rect _bounds; private: virtual byte getClearColor() const = 0; -- cgit v1.2.3