Even our comments and status messages have less bugs now (jomalin)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3764
This commit is contained in:
parent
fc1ffcc528
commit
a7af902f2f
19 changed files with 26 additions and 26 deletions
|
@ -323,7 +323,7 @@ void CAPTURE_AddImage(Bitu width, Bitu height, Bitu bpp, Bitu pitch, Bitu flags,
|
|||
/* Open the actual file */
|
||||
FILE * fp=OpenCaptureFile("Screenshot",".png");
|
||||
if (!fp) goto skip_shot;
|
||||
/* First try to alloacte the png structures */
|
||||
/* First try to allocate the png structures */
|
||||
png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL,NULL, NULL);
|
||||
if (!png_ptr) goto skip_shot;
|
||||
info_ptr = png_create_info_struct(png_ptr);
|
||||
|
|
|
@ -601,7 +601,7 @@ MixerChannel* MixerObject::Install(MIXER_Handler handler,Bitu freq,const char *
|
|||
installed = true;
|
||||
return MIXER_AddChannel(handler,freq,name);
|
||||
} else {
|
||||
E_Exit("allready added mixer channel.");
|
||||
E_Exit("already added mixer channel.");
|
||||
return 0; //Compiler happy
|
||||
}
|
||||
}
|
||||
|
|
|
@ -197,7 +197,7 @@ int SERIAL_getextchar(COMPORT port) {
|
|||
char chRead;
|
||||
|
||||
int retval = 0;
|
||||
// receive a byte; TODO communicate faliure
|
||||
// receive a byte; TODO communicate failure
|
||||
if (ReadFile (port->porthandle, &chRead, 1, &dwRead, NULL)) {
|
||||
if (dwRead) {
|
||||
// check for errors
|
||||
|
@ -580,7 +580,7 @@ int SERIAL_getextchar(COMPORT port) {
|
|||
char chRead;
|
||||
|
||||
int retval = 0;
|
||||
// receive a byte; TODO communicate faliure
|
||||
// receive a byte; TODO communicate failure
|
||||
if (DosRead(port->porthandle, &chRead, 1, &dwRead) == NO_ERROR) {
|
||||
if (dwRead) {
|
||||
// check for errors; will OS/2 clear the error on reading its data?
|
||||
|
|
|
@ -82,7 +82,7 @@ static Bit8u * VGA_Draw_CGA16_Line(Bitu vidstart, Bitu line) {
|
|||
//Generate a temporary bitline to calculate the avarage
|
||||
//over bit-2 bit-1 bit bit+1.
|
||||
//Combine this number with the current colour to get
|
||||
//an unique index in the pallete. Or it with bit 7 as they are stored
|
||||
//an unique index in the pallette. Or it with bit 7 as they are stored
|
||||
//in the upperpart to keep them from interfering the regular cga stuff
|
||||
|
||||
for(Bitu x = 0; x < 640; x++)
|
||||
|
|
|
@ -341,7 +341,7 @@ void SVGA_S3_WriteCRTC(Bitu reg,Bitu val,Bitu iolen) {
|
|||
vga.svga.bank_write = vga.svga.bank_read;
|
||||
VGA_SetupHandlers();
|
||||
break;
|
||||
case 0x6b: // BIOS scratchpad: LFB adress
|
||||
case 0x6b: // BIOS scratchpad: LFB address
|
||||
vga.s3.reg_6b=(Bit8u)val;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue