tennix: fix build

in the first attempt git removed whitespaces
This commit is contained in:
Pascal Wittmann 2015-10-09 09:59:38 +02:00
parent 7d3ffc5bf8
commit 6d89fff92a

View File

@ -90,33 +90,33 @@ Bug-Debian: http://bugs.debian.org/664907
csax = sax; csax = sax;
- for (x = 0; x < dst->w; x++) { - for (x = 0; x < dst->w; x++) {
+ for (x = 0; x < (Uint32)dst->w; x++) { + for (x = 0; x < (Uint32)dst->w; x++) {
csx += sx; csx += sx;
*csax = (csx >> 16); *csax = (csx >> 16);
csx &= 0xffff; csx &= 0xffff;
@@ -401,7 +404,7 @@ int zoomSurfaceY(SDL_Surface * src, SDL_ @@ -401,7 +404,7 @@ int zoomSurfaceY(SDL_Surface * src, SDL_
} }
csy = 0; csy = 0;
csay = say; csay = say;
- for (y = 0; y < dst->h; y++) { - for (y = 0; y < dst->h; y++) {
+ for (y = 0; y < (Uint32)dst->h; y++) { + for (y = 0; y < (Uint32)dst->h; y++) {
csy += sy; csy += sy;
*csay = (csy >> 16); *csay = (csy >> 16);
csy &= 0xffff; csy &= 0xffff;
@@ -410,13 +413,13 @@ int zoomSurfaceY(SDL_Surface * src, SDL_ @@ -410,13 +413,13 @@ int zoomSurfaceY(SDL_Surface * src, SDL_
csx = 0; csx = 0;
csax = sax; csax = sax;
- for (x = 0; x < dst->w; x++) { - for (x = 0; x < dst->w; x++) {
+ for (x = 0; x < (Uint32)dst->w; x++) { + for (x = 0; x < (Uint32)dst->w; x++) {
csx += (*csax); csx += (*csax);
csax++; csax++;
} }
csy = 0; csy = 0;
csay = say; csay = say;
- for (y = 0; y < dst->h; y++) { - for (y = 0; y < dst->h; y++) {
+ for (y = 0; y < (Uint32)dst->h; y++) { + for (y = 0; y < (Uint32)dst->h; y++) {
csy += (*csay); csy += (*csay);
csay++; csay++;
} }
@@ -432,10 +435,10 @@ int zoomSurfaceY(SDL_Surface * src, SDL_ @@ -432,10 +435,10 @@ int zoomSurfaceY(SDL_Surface * src, SDL_
* Draw * Draw
@ -124,16 +124,16 @@ Bug-Debian: http://bugs.debian.org/664907
csay = say; csay = say;
- for (y = 0; y < dst->h; y++) { - for (y = 0; y < dst->h; y++) {
+ for (y = 0; y < (Uint32)dst->h; y++) { + for (y = 0; y < (Uint32)dst->h; y++) {
csax = sax; csax = sax;
sp = csp; sp = csp;
- for (x = 0; x < dst->w; x++) { - for (x = 0; x < dst->w; x++) {
+ for (x = 0; x < (Uint32)dst->w; x++) { + for (x = 0; x < (Uint32)dst->w; x++) {
/* /*
* Draw * Draw
*/ */
@@ -801,6 +804,8 @@ SDL_Surface* rotateSurface90Degrees(SDL_ @@ -801,6 +804,8 @@ SDL_Surface* rotateSurface90Degrees(SDL_
void rotozoomSurfaceSizeTrig(int width, int height, double angle, double zoomx, double zoomy, int *dstwidth, int *dstheight, void rotozoomSurfaceSizeTrig(int width, int height, double angle, double zoomx, double zoomy, int *dstwidth, int *dstheight,
double *canglezoom, double *sanglezoom) double *canglezoom, double *sanglezoom)
{ {
+ (void)zoomy; + (void)zoomy;
+ +