[Scummvm-cvs-logs] SF.net SVN: scummvm:[39697] scummvm/trunk/engines/sci/gfx/gfx_widgets.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Thu Mar 26 00:26:25 CET 2009


Revision: 39697
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39697&view=rev
Author:   thebluegr
Date:     2009-03-25 23:26:24 +0000 (Wed, 25 Mar 2009)

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

Modified Paths:
--------------
    scummvm/trunk/engines/sci/gfx/gfx_widgets.cpp

Modified: scummvm/trunk/engines/sci/gfx/gfx_widgets.cpp
===================================================================
--- scummvm/trunk/engines/sci/gfx/gfx_widgets.cpp	2009-03-25 23:14:31 UTC (rev 39696)
+++ scummvm/trunk/engines/sci/gfx/gfx_widgets.cpp	2009-03-25 23:26:24 UTC (rev 39697)
@@ -576,12 +576,6 @@
 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);
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list