summaryrefslogtreecommitdiffstats
path: root/nyan.c
diff options
context:
space:
mode:
authorLAMMJohnson <john_anthony@lavabit.com>2011-06-26 03:32:22 +0100
committerLAMMJohnson <john_anthony@lavabit.com>2011-06-26 03:32:22 +0100
commit1617a4a91b6314aaf64a716b741060346e5388be (patch)
tree9eaf87ef20eba414357c4ede60f994ccdaa3b693 /nyan.c
parentc40cee8a5708d97533f060389a32572307e27904 (diff)
downloadnyancat-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
Diffstat (limited to 'nyan.c')
-rw-r--r--nyan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nyan.c b/nyan.c
index ff92d0d..b0f93d2 100644
--- a/nyan.c
+++ b/nyan.c
@@ -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)