From a61bca207552329ee9e0e2287a0ed68b3871a5cf Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 25 Dec 2019 16:07:22 +0100 Subject: DIRECTOR: Added drawing for QuickDraw cast members --- graphics/primitives.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'graphics/primitives.cpp') diff --git a/graphics/primitives.cpp b/graphics/primitives.cpp index 97e3d06177..60898aa16c 100644 --- a/graphics/primitives.cpp +++ b/graphics/primitives.cpp @@ -244,6 +244,13 @@ void drawFilledRect(Common::Rect &rect, int color, void (*plotProc)(int, int, in drawHLine(rect.left, rect.right, y, color, plotProc, data); } +void drawRect(Common::Rect &rect, int color, void (*plotProc)(int, int, int, void *), void *data) { + drawHLine(rect.left, rect.right, rect.top, color, plotProc, data); + drawHLine(rect.left, rect.right, rect.bottom, color, plotProc, data); + drawVLine(rect.top, rect.bottom, rect.left, color, plotProc, data); + drawVLine(rect.top, rect.bottom, rect.right, color, plotProc, data); +} + // http://members.chello.at/easyfilter/bresenham.html void drawRoundRect(Common::Rect &rect, int arc, int color, bool filled, void (*plotProc)(int, int, int, void *), void *data) { if (rect.height() < rect.width()) { -- cgit v1.2.3