Lines are no longer treated as fake rectangles and are shown correctly again

svn-id: r44663
This commit is contained in:
Filippos Karapetis 2009-10-05 13:33:26 +00:00
parent 3e66ae85f6
commit 4c35022f6b
5 changed files with 19 additions and 25 deletions

View file

@ -304,8 +304,8 @@ void SciGui::graphFillBox(Common::Rect rect, uint16 colorMask, int16 color, int1
_screen->copyToScreen();
}
void SciGui::graphDrawLine(Common::Rect rect, int16 color, int16 priority, int16 control) {
_gfx->Draw_Line(rect.left, rect.top, rect.right, rect.bottom, color, priority, control);
void SciGui::graphDrawLine(Common::Point startPoint, Common::Point endPoint, int16 color, int16 priority, int16 control) {
_gfx->Draw_Line(startPoint.x, startPoint.y, endPoint.x, endPoint.y, color, priority, control);
_screen->copyToScreen();
}