projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Just put screen's width and height as definitions.
[supertux.git]
/
src
/
setup.cpp
diff --git
a/src/setup.cpp
b/src/setup.cpp
index
b215a59
..
040f9be
100644
(file)
--- a/
src/setup.cpp
+++ b/
src/setup.cpp
@@
-664,7
+664,7
@@
void st_video_setup_sdl(void)
if (use_fullscreen)
{
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,
if (screen == NULL)
{
fprintf(stderr,
@@
-677,7
+677,7
@@
void st_video_setup_sdl(void)
}
else
{
}
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)
{
if (screen == NULL)
{
@@
-702,7
+702,7
@@
void st_video_setup_gl(void)
if (use_fullscreen)
{
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,
if (screen == NULL)
{
fprintf(stderr,
@@
-715,7
+715,7
@@
void st_video_setup_gl(void)
}
else
{
}
else
{
- screen = SDL_SetVideoMode(
640, 480
, 0, SDL_OPENGL);
+ screen = SDL_SetVideoMode(
SCREEN_W, SCREEN_H
, 0, SDL_OPENGL);
if (screen == NULL)
{
if (screen == NULL)
{