From 74334d7c6109af529b9b90684b1d16460615d69e Mon Sep 17 00:00:00 2001 From: stainless <> Date: Thu, 6 Sep 2001 20:53:53 +0000 Subject: [PATCH] Fixed gamma correction in the DOS port. --- zsnes/src/dos/zloader.c | 4 ++-- zsnes/src/ui.asm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zsnes/src/dos/zloader.c b/zsnes/src/dos/zloader.c index 0ef88973..e3317204 100644 --- a/zsnes/src/dos/zloader.c +++ b/zsnes/src/dos/zloader.c @@ -44,7 +44,7 @@ void ccmdline(void); char *ers[] = { "Frame Skip must be a value of 0 to 9!\n", - "Gamma Correction Level must be a value of 0 to 5!\n", + "Gamma Correction Level must be a value of 0 to 31!\n", "Sound Sampling Rate must be a value of 0 to 6!\n", "Invalid Video Mode!\n", "Percentage of instructions to execute must be a number from 50 to 150!\n", @@ -166,7 +166,7 @@ int pccmdline(void) { if(!hasroom) return 4; gammalevel=my_atoi(argv[p+1]); - if(gammalevel > 5) return 11; + if(gammalevel > 31) return 11; p++; break; } diff --git a/zsnes/src/ui.asm b/zsnes/src/ui.asm index 604a83d1..d5382dac 100644 --- a/zsnes/src/ui.asm +++ b/zsnes/src/ui.asm @@ -1412,7 +1412,7 @@ SECTION .data db ' -e Skip enter key press at the beginning',13,10 %endif db ' -f # Turn on frame skip [0..9]',13,10 - db ' -g # Set Gamma Correction [0..5, 0 = Normal]',13,10 + db ' -g # Set Gamma Correction [0...31, 0 = 1.0, 31 = 2.0]',13,10 db ' -h Force HiROM',13,10 db ' -i Uninterleave ROM Image',13,10 db ' -j Disable Mouse (Automatically turns off right mouse click)',13,10