From f698d04008c5342f98d58607d6c3259d42965a5f Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 30 May 2017 21:38:28 -0400 Subject: TITANIC: Fix line drawing of starfield markers --- engines/titanic/star_control/surface_area.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'engines/titanic/star_control/surface_area.h') diff --git a/engines/titanic/star_control/surface_area.h b/engines/titanic/star_control/surface_area.h index 2605634357..be1689fdec 100644 --- a/engines/titanic/star_control/surface_area.h +++ b/engines/titanic/star_control/surface_area.h @@ -91,13 +91,14 @@ public: /** * Draws a line on the surface */ - double drawLine(const FRect &rect); + double drawLine(const FPoint &pt1, const FPoint &pt2); /** - * Draws a line on the surface + * Draws a line on the surface from the rect's top-left + * to bottom-right corners */ - double drawLine(const FPoint &pt1, const FPoint &pt2) { - return drawLine(FRect(pt1._x, pt1._y, pt2._x, pt2._y)); + double drawLine(const FRect &rect) { + return drawLine(FPoint(rect.left, rect.top), FPoint(rect.right, rect.bottom)); } }; -- cgit v1.2.3