internal screen dimensions as enum in extern.h, instead of #defines in config.h
This commit is contained in:
parent
502f451110
commit
873c57cb13
2 changed files with 7 additions and 6 deletions
7
config.h
7
config.h
|
@ -11,12 +11,7 @@
|
||||||
#define FS_BUTTON SDLK_f
|
#define FS_BUTTON SDLK_f
|
||||||
#define PAUSE_BUTTON SDLK_q
|
#define PAUSE_BUTTON SDLK_q
|
||||||
|
|
||||||
|
/* video scaling factor should be a positive integer */
|
||||||
// internal game resolution is 320x180 widescreen
|
|
||||||
#define SCREEN_WIDTH 320
|
|
||||||
#define SCREEN_HEIGHT 180
|
|
||||||
|
|
||||||
// video scaling factor should be a positive integer
|
|
||||||
#define SCALE_FACTOR 2
|
#define SCALE_FACTOR 2
|
||||||
|
|
||||||
//#define SOUND_ON
|
//#define SOUND_ON
|
||||||
|
|
6
extern.h
6
extern.h
|
@ -1,4 +1,10 @@
|
||||||
|
|
||||||
|
enum screenDimensions
|
||||||
|
{
|
||||||
|
SCREEN_WIDTH = 320,
|
||||||
|
SCREEN_HEIGHT = 180
|
||||||
|
};
|
||||||
|
|
||||||
extern int fullscreen;
|
extern int fullscreen;
|
||||||
extern int quit;
|
extern int quit;
|
||||||
extern int playing;
|
extern int playing;
|
||||||
|
|
Loading…
Reference in a new issue