diff --git a/packages/maps/ac_desert.cgz b/packages/maps/ac_desert.cgz index 9ecab193..34f76ca8 100644 Binary files a/packages/maps/ac_desert.cgz and b/packages/maps/ac_desert.cgz differ diff --git a/source/src/main.cpp b/source/src/main.cpp index e940b04a..5e29f8e8 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -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