Skip to content

Commit

Permalink
TITANIC: Fix drawing bounds in CSurfaceArea fillRect
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Apr 1, 2017
1 parent f436382 commit 9891373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/titanic/star_control/surface_area.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ double CSurfaceArea::fillRect(const FRect &rect) {
}

Common::Rect rr((int)(MIN(r.left, r.right) - 0.5), (int)(MIN(r.top, r.bottom) - 0.5),
(int)(MAX(r.left, r.right) - 0.5), (int)(MAX(r.top, r.bottom) - 0.5));
(int)(MAX(r.left, r.right) - 0.5) + 1, (int)(MAX(r.top, r.bottom) - 0.5) + 1);

Graphics::Surface s;
s.setPixels(_pixelsPtr);
Expand Down

0 comments on commit 9891373

Please sign in to comment.