libsdl-sge bug.

Steven Davidovitz steviedizzle at gmail.com
Wed Mar 29 04:18:27 UTC 2006


Hi,
I am working on a project using Ruby/SDL that uses SGE and have come 
across a small
bug in it that was fixed with a patch from the creator of Ruby/SDL. I
was wondering if there is any way to get it merged with the package and
released?
The patch is attached but can also be accessed at
http://rubyforge.org/tracker/download.php/1006/3942/3251/449/sge.diff 
<http://rubyforge.org/tracker/download.php/1006/3942/3251/449/sge.diff>.

Thank you very much,
Steven
-------------- next part --------------
diff -ur sge030809/sge_collision.cpp sge030809_modified/sge_collision.cpp
--- sge030809/sge_collision.cpp	2003-08-03 20:43:15.000000000 +0900
+++ sge030809_modified/sge_collision.cpp	2006-01-21 17:00:28.000000000 +0900
@@ -336,7 +336,7 @@
 void sge_unset_cdata(sge_cdata *cd, Sint16 x, Sint16 y, Sint16 w, Sint16 h)
 {
 	Uint8 *map=cd->map;
-	Sint16 offs,len;
+	Sint32 offs,len;
 	int i,n=0;
 	
 	offs=y*cd->w + x;
@@ -365,7 +365,7 @@
 void sge_set_cdata(sge_cdata *cd, Sint16 x, Sint16 y, Sint16 w, Sint16 h)
 {
 	Uint8 *map=cd->map;
-	Sint16 offs,len;
+	Sint32 offs,len;
 	int i,n=0;
 	
 	offs=y*cd->w + x;



More information about the Pkg-sdl-maintainers mailing list