Diffstat (limited to 'noncore/games/sfcave-sdl/rect.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/sfcave-sdl/rect.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/games/sfcave-sdl/rect.h b/noncore/games/sfcave-sdl/rect.h index dc9c9d5..30f082c 100644 --- a/noncore/games/sfcave-sdl/rect.h +++ b/noncore/games/sfcave-sdl/rect.h @@ -1,28 +1,28 @@ #ifndef __RECT_H
#define __RECT_H
-#include "SDL.h"
+#include <SDL/SDL.h> class Rect
{
public:
Rect() { r.x = r.y = r.w = r.h = 0; }
Rect( int x, int y, int w, int h ) { setRect( x, y, w, h ); }
~Rect() {}
void setRect( int x, int y, int w, int h ) { r.x = x; r.y = y; r.w = w; r.h = h; }
SDL_Rect getRect() { return r; }
int x() { return r.x; }
int y() { return r.y; }
int w() { return r.w; }
int h() { return r.h; }
void x( int x) { r.x = x; }
void y( int y) { r.y = y; }
void w( int w) { r.w = w; }
void h( int h) { r.h = h; }
void moveBy( int x, int y )
{
r.x += x;
r.y += y;
|