[Super-tux-commit] supertux/src defines.h,1.28,1.29 setup.cpp,1.68,1.69
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-05-04 11:28:26
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29891/src Modified Files: defines.h setup.cpp Log Message: Just put screen's width and height as definitions. Index: defines.h =================================================================== RCS file: /cvsroot/super-tux/supertux/src/defines.h,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- defines.h 28 Apr 2004 14:58:24 -0000 1.28 +++ defines.h 4 May 2004 11:27:39 -0000 1.29 @@ -48,6 +48,11 @@ DYING_FALLING = 2 }; +/* Screen proprities: */ + +#define SCREEN_W 640 +#define SCREEN_H 480 + /* Sizes: */ #define SMALL 0 Index: setup.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/setup.cpp,v retrieving revision 1.68 retrieving revision 1.69 diff -u -d -r1.68 -r1.69 --- setup.cpp 3 May 2004 12:02:53 -0000 1.68 +++ setup.cpp 4 May 2004 11:27:47 -0000 1.69 @@ -664,7 +664,7 @@ if (use_fullscreen) { - screen = SDL_SetVideoMode(640, 480, 0, SDL_FULLSCREEN ) ; /* | SDL_HWSURFACE); */ + screen = SDL_SetVideoMode(SCREEN_W, SCREEN_H, 0, SDL_FULLSCREEN ) ; /* | SDL_HWSURFACE); */ if (screen == NULL) { fprintf(stderr, @@ -677,7 +677,7 @@ } else { - screen = SDL_SetVideoMode(640, 480, 0, SDL_HWSURFACE | SDL_DOUBLEBUF ); + screen = SDL_SetVideoMode(SCREEN_W, SCREEN_H, 0, SDL_HWSURFACE | SDL_DOUBLEBUF ); if (screen == NULL) { @@ -702,7 +702,7 @@ if (use_fullscreen) { - screen = SDL_SetVideoMode(640, 480, 0, SDL_FULLSCREEN | SDL_OPENGL) ; /* | SDL_HWSURFACE); */ + screen = SDL_SetVideoMode(SCREEN_W, SCREEN_H, 0, SDL_FULLSCREEN | SDL_OPENGL) ; /* | SDL_HWSURFACE); */ if (screen == NULL) { fprintf(stderr, @@ -715,7 +715,7 @@ } else { - screen = SDL_SetVideoMode(640, 480, 0, SDL_OPENGL); + screen = SDL_SetVideoMode(SCREEN_W, SCREEN_H, 0, SDL_OPENGL); if (screen == NULL) { |