updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / sge / sge-030809-cmap.patch
blobc03396e1fb8bb87e9f4ba92597d087f730c6c48b
1 http://bugs.gentoo.org/33296#26
3 patch by Steve <steviedizzle@gmail.com>
5 explanation:
6 It changes the 16bit integers for setting and clearing collision maps to 32bit
7 because if the surface is too large the program will segfault.
9 --- sge030809/sge_collision.cpp
10 +++ sge030809/sge_collision.cpp
11 @@ -336,7 +336,7 @@
12 void sge_unset_cdata(sge_cdata *cd, Sint16 x, Sint16 y, Sint16 w, Sint16 h)
14 Uint8 *map=cd->map;
15 - Sint16 offs,len;
16 + Sint32 offs,len;
17 int i,n=0;
19 offs=y*cd->w + x;
20 @@ -365,7 +365,7 @@
21 void sge_set_cdata(sge_cdata *cd, Sint16 x, Sint16 y, Sint16 w, Sint16 h)
23 Uint8 *map=cd->map;
24 - Sint16 offs,len;
25 + Sint32 offs,len;
26 int i,n=0;
28 offs=y*cd->w + x;