aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2009-03-25 23:26:24 +0000
committerFilippos Karapetis2009-03-25 23:26:24 +0000
commitb4b0e35841e19dc3f472762c09d7e5598c3cbfe5 (patch)
tree7cebb4c98bf392813ae2df004d3513fab9266a53 /engines
parent2b1ad19b7f88e4304c249e5b79cf6747ed282c69 (diff)
downloadscummvm-rg350-b4b0e35841e19dc3f472762c09d7e5598c3cbfe5.tar.gz
scummvm-rg350-b4b0e35841e19dc3f472762c09d7e5598c3cbfe5.tar.bz2
scummvm-rg350-b4b0e35841e19dc3f472762c09d7e5598c3cbfe5.zip
Remove a workaround in the line drawing function - it shouldn't be necessary anymore
svn-id: r39697
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/gfx/gfx_widgets.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/engines/sci/gfx/gfx_widgets.cpp b/engines/sci/gfx/gfx_widgets.cpp
index 8f25abd3dd..6d55a46b28 100644
--- a/engines/sci/gfx/gfx_widgets.cpp
+++ b/engines/sci/gfx/gfx_widgets.cpp
@@ -576,12 +576,6 @@ void _gfxw_set_ops_LINE(gfxw_widget_t *prim) {
gfxw_primitive_t *gfxw_new_line(Common::Point start, Common::Point end, gfx_color_t color, gfx_line_mode_t line_mode, gfx_line_style_t line_style) {
gfxw_primitive_t *prim;
- // SCI can draw lines inversely. We convert inverse lines to normal ones here, because the resulting rectangles are invalid
- if (end.x < start.x || end.y < start.y) {
- SWAP(start.x, end.x);
- SWAP(start.y, end.y);
- }
-
// Encode into internal representation
rect_t line = gfx_rect(start.x, start.y, end.x - start.x, end.y - start.y);