diff --git a/source/src/main.cpp b/source/src/main.cpp index ec293068..ea86b923 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -123,7 +123,7 @@ void setfullscreen(bool enable) } } -void screenres(int w, int h, int bpp = 0) +void screenres(int w, int h) { #if !defined(WIN32) && !defined(__APPLE__) if(initing) @@ -131,18 +131,16 @@ void screenres(int w, int h, int bpp = 0) #endif scr_w = w; scr_h = h; - if(bpp) colorbits = bpp; #if defined(WIN32) || defined(__APPLE__) initwarning(); #else return; } - SDL_Surface *surf = SDL_SetVideoMode(w, h, bpp, SDL_OPENGL|SDL_RESIZABLE|(screen->flags&SDL_FULLSCREEN)); + SDL_Surface *surf = SDL_SetVideoMode(w, h, 0, SDL_OPENGL|SDL_RESIZABLE|(screen->flags&SDL_FULLSCREEN)); if(!surf) return; screen = surf; scr_w = screen->w; scr_h = screen->h; - if(bpp) colorbits = bpp; glViewport(0, 0, scr_w, scr_h); VIRTW = scr_w*VIRTH/scr_h; #endif @@ -157,7 +155,7 @@ void setresdata(char *s, enet_uint32 c) VARF(fullscreen, 0, 0, 1, setfullscreen(fullscreen!=0)); -COMMAND(screenres, ARG_3INT); +COMMAND(screenres, ARG_2INT); VARFP(gamma, 30, 100, 300, {