Remove a workaround in the line drawing function - it shouldn't be necessary anymore

svn-id: r39697
This commit is contained in:
Filippos Karapetis 2009-03-25 23:26:24 +00:00
parent 2b1ad19b7f
commit b4b0e35841

View File

@ -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);