From d6c530413e5a866ba15b0122ed3925e79064d325 Mon Sep 17 00:00:00 2001 From: Florian Schulze Date: Fri, 5 Jul 2002 13:51:20 +0000 Subject: [PATCH] Renamed JB_VERSION to JNB_VERSION (GS). --- globals.h | 2 +- main.c | 7 ++++--- menu.c | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/globals.h b/globals.h index 30641f4..7445907 100644 --- a/globals.h +++ b/globals.h @@ -65,7 +65,7 @@ # endif #endif -#define JB_VERSION "1.3" +#define JNB_VERSION "1.3" #define JNB_WIDTH 400 #define JNB_HEIGHT 256 diff --git a/main.c b/main.c index f664039..0403512 100644 --- a/main.c +++ b/main.c @@ -224,8 +224,8 @@ static flip_pixels(unsigned char *pixels) for (y = 0; y < JNB_HEIGHT; y++) { for (x = 0; x < (352/2); x++) { temp = pixels[y*JNB_WIDTH+x]; - pixels[y*JNB_WIDTH+x] = pixels[y*JNB_WIDTH+(352-x)]; - pixels[y*JNB_WIDTH+(352-x)] = temp; + pixels[y*JNB_WIDTH+x] = pixels[y*JNB_WIDTH+(352-x)-1]; + pixels[y*JNB_WIDTH+(352-x)-1] = temp; } } } @@ -1906,7 +1906,7 @@ int init_program(int argc, char *argv[], char *pal) } } else if (strstr(argv[1],"-v")) { - printf("jumpnbump %s compiled %s at %s with",JB_VERSION,__DATE__,__TIME__); + printf("jumpnbump %s compiled %s at %s with",JNB_VERSION,__DATE__,__TIME__); #ifndef _SDLnet_h printf("out"); #endif @@ -1926,6 +1926,7 @@ int init_program(int argc, char *argv[], char *pal) printf(" -nosound play without sound\n"); printf(" -nogore play without blood\n"); printf(" -mirror play with mirrored level\n"); + printf(" -scaleup play with doubled resolution (800x512)\n"); printf("\n"); return 1; } diff --git a/menu.c b/menu.c index 948cde1..2f4e7b3 100644 --- a/menu.c +++ b/menu.c @@ -35,7 +35,7 @@ char menu_pal[768]; char menu_cur_pal[768]; char *message[] = { - "Jump 'n Bump "JB_VERSION, + "Jump 'n Bump "JNB_VERSION, "by Brainchild Design in 1998.", "Code by Mattias Brynervall.", "Graphics by Martin Magnusson", -- 2.39.2