Fixed gamma correction in the DOS port.

This commit is contained in:
stainless
2001-09-06 21:22:07 +00:00
parent 421794f122
commit ed35e58345
2 changed files with 3 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ void ccmdline(void);
char *ers[] = char *ers[] =
{ {
"Frame Skip must be a value of 0 to 9!\n", "Frame Skip must be a value of 0 to 9!\n",
"Gamma Correction Level must be a value of 0 to 31!\n", "Gamma Correction Level must be a value of 0 to 15!\n",
"Sound Sampling Rate must be a value of 0 to 6!\n", "Sound Sampling Rate must be a value of 0 to 6!\n",
"Invalid Video Mode!\n", "Invalid Video Mode!\n",
"Percentage of instructions to execute must be a number from 50 to 150!\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; if(!hasroom) return 4;
gammalevel=my_atoi(argv[p+1]); gammalevel=my_atoi(argv[p+1]);
if(gammalevel > 31) return 11; if(gammalevel > 15) return 11;
p++; p++;
break; break;
} }

View File

@@ -1412,7 +1412,7 @@ SECTION .data
db ' -e Skip enter key press at the beginning',13,10 db ' -e Skip enter key press at the beginning',13,10
%endif %endif
db ' -f # Turn on frame skip [0..9]',13,10 db ' -f # Turn on frame skip [0..9]',13,10
db ' -g # Set Gamma Correction [0...31, 0 = 1.0, 31 = 2.0]',13,10 db ' -g # Set Gamma Correction [0...15, 0 = 1.0, 15 = 2.0]',13,10
%ifndef __LINUX__ %ifndef __LINUX__
db ' - Only works properly in 256 color video modes',13,10 db ' - Only works properly in 256 color video modes',13,10
%endif %endif