diff options
author | LAMMJohnson <john_anthony@lavabit.com> | 2011-06-26 03:32:22 +0100 |
---|---|---|
committer | LAMMJohnson <john_anthony@lavabit.com> | 2011-06-26 03:32:22 +0100 |
commit | 1617a4a91b6314aaf64a716b741060346e5388be (patch) | |
tree | 9eaf87ef20eba414357c4ede60f994ccdaa3b693 | |
parent | c40cee8a5708d97533f060389a32572307e27904 (diff) | |
download | nyancat-1617a4a91b6314aaf64a716b741060346e5388be.tar.gz nyancat-1617a4a91b6314aaf64a716b741060346e5388be.tar.bz2 nyancat-1617a4a91b6314aaf64a716b741060346e5388be.zip |
Fixed fullscreen res detection. Changed defaults back to small cat while the last few scaling niggles are fixed
-rw-r--r-- | TODO | 3 | ||||
-rw-r--r-- | nyan.c | 8 |
2 files changed, 7 insertions, 4 deletions
@@ -6,3 +6,6 @@ -- Add man page(?) -- Fullscreen resolution autodetect broken by most recent update +-> Fixed this temporarily but CPU usage is still proving very high/cat scaling is a bit off for wide monitors +-> Defaulting to the small cat until I can re-implement Xinerama support and fix scaling issues on wide setups + -- Johnson @@ -73,8 +73,8 @@ static SDL_Event event; static int running = 1;
static int SURF_TYPE = SDL_HWSURFACE;
static int sound = 1;
-static int fullscreen = 0;
-static int catsize = 1;
+static int fullscreen = 1;
+static int catsize = 0;
static int cursor = 0;
#ifdef XINERAMA
static Display* dpy;
@@ -248,7 +248,7 @@ handle_args(int argc, char **argv) { fullscreen = 1;
else if(!(strcmp(argv[i], "-nf") || !strcmp(argv[i], "--nofullscreen")))
fullscreen = 0;
- else if(!strcmp(argv[i], "-c") || !strcmp(argv[i], "--catsize")) { // I don't know boolean order of operations, please cut down on unneeded parenthases
+ else if(!strcmp(argv[i], "-c") || !strcmp(argv[i], "--catsize")) {
if (++i < argc) {
if(!strcmp(argv[i], "full"))
catsize = 1;
@@ -299,7 +299,7 @@ init(void) { SDL_Init( SDL_INIT_EVERYTHING );
if (fullscreen)
- screen = SDL_SetVideoMode( SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP, SURF_TYPE | SDL_FULLSCREEN );
+ screen = SDL_SetVideoMode( 0, 0, SCREEN_BPP, SURF_TYPE | SDL_FULLSCREEN );
else
screen = SDL_SetVideoMode( SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP, SURF_TYPE );
if(!cursor)
|