*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@520 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2006-11-07 09:24:24 +00:00
parent 4690008ef6
commit 8a622e330f
2 changed files with 6 additions and 6 deletions
+6 -6
View File
@@ -141,17 +141,17 @@ void setfullscreen(bool enable)
};
};
void screenres(int *w, int *h, int *bpp = 0)
void screenres(int w, int h, int bpp = 0)
{
#ifdef WIN32
conoutf("\"screenres\" command not supported on this platform. Use the -w and -h command-line options.");
#else
SDL_Surface *surf = SDL_SetVideoMode(*w, *h, bpp ? *bpp : 0, SDL_OPENGL|SDL_RESIZABLE|(screen->flags&SDL_FULLSCREEN));
SDL_Surface *surf = SDL_SetVideoMode(w, h, bpp, SDL_OPENGL|SDL_RESIZABLE|(screen->flags&SDL_FULLSCREEN));
if(!surf) return;
scr_w = *w;
scr_h = *h;
scr_w = w;
scr_h = h;
screen = surf;
glViewport(0, 0, *w, *h);
glViewport(0, 0, w, h);
#endif
};
@@ -376,7 +376,7 @@ int main(int argc, char **argv)
#ifndef WIN32
case SDL_VIDEORESIZE:
screenres(&event.resize.w, &event.resize.h);
screenres(event.resize.w, event.resize.h);
break;
#endif