From: Ricardo Cruz Date: Tue, 4 May 2004 11:27:47 +0000 (+0000) Subject: Just put screen's width and height as definitions. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=8dbd5dc1ef48c95616ff2e32e7ac1396e4117fbd;p=supertux.git Just put screen's width and height as definitions. SVN-Revision: 964 --- diff --git a/src/defines.h b/src/defines.h index 163f1bdd3..306a66169 100644 --- a/src/defines.h +++ b/src/defines.h @@ -48,6 +48,11 @@ enum DyingType { DYING_FALLING = 2 }; +/* Screen proprities: */ + +#define SCREEN_W 640 +#define SCREEN_H 480 + /* Sizes: */ #define SMALL 0 diff --git a/src/setup.cpp b/src/setup.cpp index b215a59f7..040f9be42 100644 --- a/src/setup.cpp +++ b/src/setup.cpp @@ -664,7 +664,7 @@ void st_video_setup_sdl(void) 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 @@ void st_video_setup_sdl(void) } 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 @@ void st_video_setup_gl(void) 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 @@ void st_video_setup_gl(void) } else { - screen = SDL_SetVideoMode(640, 480, 0, SDL_OPENGL); + screen = SDL_SetVideoMode(SCREEN_W, SCREEN_H, 0, SDL_OPENGL); if (screen == NULL) {