X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=common.h;h=6b1cf95f05a63c65aafad4306b0152d73cf9de18;hb=ee0a3871f9982215361cd6bb4758eb9a7c7d8413;hp=b58228b83dcd4e291b8abd8bf79279b60a20104c;hpb=4742480dcabcbd9d23fd8cb9a655fc8c9c314513;p=gpsp.git diff --git a/common.h b/common.h index b58228b..6b1cf95 100644 --- a/common.h +++ b/common.h @@ -135,8 +135,8 @@ #define file_close(filename_tag) \ { \ - sync(); \ fclose(filename_tag); \ + sync(); \ } \ #else @@ -157,30 +157,6 @@ #define file_tag_type FILE * - // The ARM arch uses SDL, and SDL requires you to know what resolution - // you want. Define the resolution for ARM arch builds here. - // Placed in common.h for use with video.c and gui.c. - - #ifndef PC_BUILD - - #define GP2X_SCREEN_WIDTH 320 - #define GP2X_SCREEN_HEIGHT 240 - - #define GIZ_SCREEN_WIDTH 320 - #define GIZ_SCREEN_HEIGHT 240 - - #ifdef GP2X_BUILD - #define SDL_SCREEN_WIDTH GP2X_SCREEN_WIDTH - #define SDL_SCREEN_HEIGHT GP2X_SCREEN_HEIGHT - - #elif defined(GIZ_BUILD) - - #define SDL_SCREEN_WIDTH GIZ_SCREEN_WIDTH - #define SDL_SCREEN_HEIGHT GIZ_SCREEN_HEIGHT - #endif - - #endif - #endif // These must be variables, not constants.