Skip to content
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.

Commit

Permalink
Fixed compile warnings about unsigned/signed integer comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn committed Jul 25, 2009
1 parent 8d6636e commit c7d5d82
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ tmw_SOURCES = gui/widgets/avatar.cpp \
resources/resource.h \
resources/resourcemanager.cpp \
resources/resourcemanager.h \
resources/sdlrescalefacility.h \
resources/sdlrescalefacility.cpp \
resources/sdlrescalefacility.h \
resources/soundeffect.h \
resources/soundeffect.cpp \
resources/spritedef.h \
Expand Down
2 changes: 1 addition & 1 deletion src/resources/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ float Image::getAlpha() const
return mAlpha;
}

Image* Image::SDLgetScaledImage(unsigned int width, unsigned int height)
Image* Image::SDLgetScaledImage(int width, int height)
{
// No scaling on incorrect new values.
if (width == 0 || height == 0)
Expand Down
2 changes: 1 addition & 1 deletion src/resources/image.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class Image : public Resource
*
* @return A new Image* object.
*/
Image* SDLgetScaledImage(unsigned int width, unsigned int height);
Image* SDLgetScaledImage(int width, int height);

/**
* Frees the resources created by SDL.
Expand Down
3 changes: 2 additions & 1 deletion src/resources/sdlrescalefacility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ int zoomSurfaceRGBA(SDL_Surface * src, SDL_Surface * dst, int flipx, int flipy,

int zoomSurfaceY(SDL_Surface * src, SDL_Surface * dst, int flipx, int flipy)
{
Uint32 x, y, sx, sy, *sax, *say, *csax, *csay, csx, csy, sstep;
int x, y;
Uint32 sx, sy, *sax, *say, *csax, *csay, csx, csy, sstep;
Uint8 *sp, *dp, *csp;
int dgap;

Expand Down

0 comments on commit c7d5d82

Please sign in to comment.