fix/work around some gcc Wall warnings
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3192
This commit is contained in:
parent
3d40069e4a
commit
c78a9f6c03
41 changed files with 280 additions and 219 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002-2007 The DOSBox Team
|
||||
* Copyright (C) 2002-2008 The DOSBox Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -16,6 +16,8 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: adlib.cpp,v 1.31 2008-08-06 18:32:35 c2woody Exp $ */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
@ -364,6 +366,8 @@ static void OPL_CallBack(Bitu len) {
|
|||
}
|
||||
opl.chan->AddSamples_s16(len,(Bit16s*)MixTemp);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if ((PIC_Ticks-opl.last_used)>30000) {
|
||||
opl.chan->Enable(false);
|
||||
|
@ -380,6 +384,8 @@ static Bitu OPL_Read(Bitu port,Bitu iolen) {
|
|||
return OPL2::YM3812Read(addr>>1,addr);
|
||||
case OPL_opl3:
|
||||
return THEOPL3::YMF262Read(0,addr);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return 0xff;
|
||||
}
|
||||
|
@ -411,6 +417,8 @@ void OPL_Write(Bitu port,Bitu val,Bitu iolen) {
|
|||
case OPL_dualopl2:
|
||||
OPL2::YM3812Write( index,port,val);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002-2007 The DOSBox Team
|
||||
* Copyright (C) 2002-2008 The DOSBox Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: hardware.cpp,v 1.18 2007-01-08 19:45:40 qbix79 Exp $ */
|
||||
/* $Id: hardware.cpp,v 1.19 2008-08-06 18:32:35 c2woody Exp $ */
|
||||
|
||||
#include <dirent.h>
|
||||
#include <string.h>
|
||||
|
@ -147,10 +147,10 @@ static void CAPTURE_AddAviChunk(const char * tag, Bit32u size, void * data, Bit3
|
|||
}
|
||||
#endif
|
||||
|
||||
#if (C_SSHOT)
|
||||
static void CAPTURE_VideoEvent(bool pressed) {
|
||||
if (!pressed)
|
||||
return;
|
||||
#if (C_SSHOT)
|
||||
if (CaptureState & CAPTURE_VIDEO) {
|
||||
/* Close the video */
|
||||
CaptureState &= ~CAPTURE_VIDEO;
|
||||
|
@ -283,12 +283,12 @@ static void CAPTURE_VideoEvent(bool pressed) {
|
|||
} else {
|
||||
CaptureState |= CAPTURE_VIDEO;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
void CAPTURE_AddImage(Bitu width, Bitu height, Bitu bpp, Bitu pitch, Bitu flags, float fps, Bit8u * data, Bit8u * pal) {
|
||||
Bitu i;
|
||||
#if (C_SSHOT)
|
||||
Bitu i;
|
||||
Bit8u doubleRow[SCALER_MAXWIDTH*4];
|
||||
Bitu countWidth = width;
|
||||
|
||||
|
@ -543,11 +543,13 @@ skip_video:
|
|||
}
|
||||
|
||||
|
||||
#if (C_SSHOT)
|
||||
static void CAPTURE_ScreenShotEvent(bool pressed) {
|
||||
if (!pressed)
|
||||
return;
|
||||
CaptureState |= CAPTURE_IMAGE;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/* WAV capturing */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002-2007 The DOSBox Team
|
||||
* Copyright (C) 2002-2008 The DOSBox Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: sblaster.cpp,v 1.67 2007-09-20 16:42:43 c2woody Exp $ */
|
||||
/* $Id: sblaster.cpp,v 1.68 2008-08-06 18:32:35 c2woody Exp $ */
|
||||
|
||||
#include <iomanip>
|
||||
#include <sstream>
|
||||
|
@ -226,6 +226,8 @@ static INLINE void SB_RaiseIRQ(SB_IRQS type) {
|
|||
case SB_IRQ_16:
|
||||
sb.irq.pending_16bit=true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -470,6 +472,7 @@ static void GenerateDMASound(Bitu size) {
|
|||
}
|
||||
}
|
||||
|
||||
/* old version...
|
||||
static void GenerateDACSound(Bitu len) {
|
||||
if (!sb.dac.used) {
|
||||
sb.mode=MODE_NONE;
|
||||
|
@ -485,6 +488,7 @@ static void GenerateDACSound(Bitu len) {
|
|||
sb.dac.used=0;
|
||||
sb.chan->AddSamples_m16(len,(Bit16s *)MixTemp);
|
||||
}
|
||||
*/
|
||||
|
||||
static void DMA_Silent_Event(Bitu val) {
|
||||
if (sb.dma.left<val) val=sb.dma.left;
|
||||
|
@ -836,6 +840,8 @@ static void DSP_DoCommand(void) {
|
|||
DSP_AddData(0x3);DSP_AddData(0x2);break;
|
||||
case SBT_16:
|
||||
DSP_AddData(0x4);DSP_AddData(0x5);break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 0xe2: /* Weird DMA identification write routine */
|
||||
|
@ -1346,7 +1352,6 @@ public:
|
|||
sb.hw.dma8=section->Get_int("dma");
|
||||
sb.hw.dma16=section->Get_int("hdma");
|
||||
sb.mixer.enabled=section->Get_bool("mixer");
|
||||
Bitu oplrate=section->Get_int("oplrate");
|
||||
sb.mixer.stereo=false;
|
||||
OPL_Mode opl_mode = OPL_none;
|
||||
Find_Type_And_Opl(section,sb.type,opl_mode);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002-2007 The DOSBox Team
|
||||
* Copyright (C) 2002-2008 The DOSBox Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: directserial_win32.cpp,v 1.6 2008-07-14 20:06:19 qbix79 Exp $ */
|
||||
/* $Id: directserial_win32.cpp,v 1.7 2008-08-06 18:33:30 c2woody Exp $ */
|
||||
|
||||
#include "dosbox.h"
|
||||
|
||||
|
@ -96,7 +96,7 @@ CDirectSerial::CDirectSerial (Bitu id, CommandLine* cmd)
|
|||
|
||||
if (!fSuccess) {
|
||||
// Handle the error.
|
||||
LOG_MSG ("GetCommState failed with error %d.\n", GetLastError ());
|
||||
LOG_MSG ("GetCommState failed with error %d.\n", (int)GetLastError ());
|
||||
hCom = INVALID_HANDLE_VALUE;
|
||||
return;
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ CDirectSerial::CDirectSerial (Bitu id, CommandLine* cmd)
|
|||
|
||||
if (!fSuccess) {
|
||||
// Handle the error.
|
||||
LOG_MSG ("SetCommState failed with error %d.\n", GetLastError ());
|
||||
LOG_MSG ("SetCommState failed with error %d.\n", (int)GetLastError ());
|
||||
hCom = INVALID_HANDLE_VALUE;
|
||||
return;
|
||||
}
|
||||
|
@ -157,7 +157,6 @@ void CDirectSerial::handleUpperEvent(Bit16u type) {
|
|||
switch(type) {
|
||||
case SERIAL_POLLING_EVENT: {
|
||||
DWORD dwRead = 0;
|
||||
DWORD errors = 0;
|
||||
Bit8u chRead = 0;
|
||||
|
||||
setEvent(SERIAL_POLLING_EVENT, 1);
|
||||
|
@ -329,12 +328,12 @@ void CDirectSerial::updatePortConfig (Bit16u divider, Bit8u lcr) {
|
|||
#endif
|
||||
|
||||
LOG_MSG ("Serial%d: Desired serial mode not supported (%d,%d,%d,%d",
|
||||
dcb.BaudRate,dcb.ByteSize,dcb.Parity,dcb.StopBits, COMNUMBER);
|
||||
(Bit32u)dcb.BaudRate,(Bit32u)dcb.ByteSize,
|
||||
(Bit32u)dcb.Parity,(Bit32u)dcb.StopBits, COMNUMBER);
|
||||
}
|
||||
}
|
||||
|
||||
void CDirectSerial::updateMSR () {
|
||||
Bit8u newmsr = 0;
|
||||
DWORD dptr = 0;
|
||||
|
||||
if (!GetCommModemStatus (hCom, &dptr)) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002-2007 The DOSBox Team
|
||||
* Copyright (C) 2002-2008 The DOSBox Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -16,7 +16,8 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: serialport.cpp,v 1.9 2008-07-14 20:06:19 qbix79 Exp $ */
|
||||
/* $Id: serialport.cpp,v 1.10 2008-08-06 18:33:30 c2woody Exp $ */
|
||||
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
|
@ -939,8 +940,7 @@ void CSerial::Init_Registers () {
|
|||
|
||||
Bit32u initbps = 9600;
|
||||
Bit8u bytesize = 8;
|
||||
char parity = 'N';
|
||||
Bit8u stopbits = 1;
|
||||
char parity = 'N';
|
||||
|
||||
Bit8u lcrresult = 0;
|
||||
Bit16u baudresult = 0;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: vga.cpp,v 1.34 2008-02-06 18:23:34 c2woody Exp $ */
|
||||
/* $Id: vga.cpp,v 1.35 2008-08-06 18:32:35 c2woody Exp $ */
|
||||
|
||||
#include "dosbox.h"
|
||||
//#include "setup.h"
|
||||
|
@ -100,6 +100,8 @@ void VGA_SetClock(Bitu which,Bitu target) {
|
|||
Bits err;
|
||||
} best;
|
||||
best.err=target;
|
||||
best.m=1;
|
||||
best.n=1;
|
||||
Bitu n,r;
|
||||
Bits m;
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: vga_draw.cpp,v 1.102 2008-06-08 18:27:25 c2woody Exp $ */
|
||||
/* $Id: vga_draw.cpp,v 1.103 2008-08-06 18:32:35 c2woody Exp $ */
|
||||
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
@ -204,14 +204,14 @@ static Bit8u * VGA_Draw_Xlat16_Linear_Line(Bitu vidstart, Bitu line) {
|
|||
}
|
||||
|
||||
//Test version, might as well keep it
|
||||
static Bit8u * VGA_Draw_Chain_Line(Bitu vidstart, Bitu line) {
|
||||
/* static Bit8u * VGA_Draw_Chain_Line(Bitu vidstart, Bitu line) {
|
||||
Bitu i = 0;
|
||||
for ( i = 0; i < vga.draw.width;i++ ) {
|
||||
Bitu addr = vidstart + i;
|
||||
TempLine[i] = vga.mem.linear[((addr&~3)<<2)+(addr&3)];
|
||||
}
|
||||
return TempLine;
|
||||
}
|
||||
} */
|
||||
|
||||
static Bit8u * VGA_Draw_VGA_Line_HWMouse( Bitu vidstart, Bitu line) {
|
||||
bool hwcursor_active=false;
|
||||
|
@ -430,8 +430,8 @@ static Bit8u * VGA_TEXT_Draw_Line(Bitu vidstart, Bitu line) {
|
|||
Bit32u mask2=TXT_Font_Table[font&0xf] & FontMask[col >> 7];
|
||||
Bit32u fg=TXT_FG_Table[col&0xf];
|
||||
Bit32u bg=TXT_BG_Table[col>>4];
|
||||
*draw++=fg&mask1 | bg&~mask1;
|
||||
*draw++=fg&mask2 | bg&~mask2;
|
||||
*draw++=(fg&mask1) | (bg&~mask1);
|
||||
*draw++=(fg&mask2) | (bg&~mask2);
|
||||
}
|
||||
if (!vga.draw.cursor.enabled || !(vga.draw.cursor.count&0x8)) goto skip_cursor;
|
||||
font_addr = (vga.draw.cursor.address-vidstart) >> 1;
|
||||
|
@ -459,8 +459,8 @@ static Bit8u * VGA_TEXT_Xlat16_Draw_Line(Bitu vidstart, Bitu line) {
|
|||
Bit32u fg=TXT_FG_Table[col&0xf];
|
||||
Bit32u bg=TXT_BG_Table[col>>4];
|
||||
|
||||
mask1=fg&mask1 | bg&~mask1;
|
||||
mask2=fg&mask2 | bg&~mask2;
|
||||
mask1=(fg&mask1) | (bg&~mask1);
|
||||
mask2=(fg&mask2) | (bg&~mask2);
|
||||
|
||||
for(int i = 0; i < 4; i++) {
|
||||
*draw++ = vga.dac.xlat16[(mask1>>8*i)&0xff];
|
||||
|
@ -484,6 +484,7 @@ skip_cursor:
|
|||
return TempLine;
|
||||
}
|
||||
|
||||
/*
|
||||
static Bit8u * VGA_TEXT_Draw_Line_9(Bitu vidstart, Bitu line) {
|
||||
Bits font_addr;
|
||||
Bit8u * draw=(Bit8u *)TempLine;
|
||||
|
@ -541,6 +542,7 @@ static Bit8u * VGA_TEXT_Draw_Line_9(Bitu vidstart, Bitu line) {
|
|||
skip_cursor:
|
||||
return TempLine;
|
||||
}
|
||||
*/
|
||||
|
||||
static Bit8u * VGA_TEXT_Xlat16_Draw_Line_9(Bitu vidstart, Bitu line) {
|
||||
Bits font_addr;
|
||||
|
@ -852,6 +854,8 @@ static void VGA_VerticalTimer(Bitu val) {
|
|||
case M_TANDY2:case M_TANDY4:case M_TANDY16:
|
||||
vga.draw.address *= 2;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (GCC_UNLIKELY(vga.draw.split_line==0)) VGA_ProcessSplit();
|
||||
#ifdef VGA_KEEP_CHANGES
|
||||
|
@ -904,6 +908,9 @@ void VGA_CheckScanLength(void) {
|
|||
case M_HERC_GFX:
|
||||
vga.draw.address_add=vga.draw.blocks;
|
||||
break;
|
||||
default:
|
||||
vga.draw.address_add=vga.draw.blocks*8;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1003,6 +1010,7 @@ void VGA_SetupDrawing(Bitu val) {
|
|||
clock = (machine==MCH_EGA) ? 14318180 : 25175000;
|
||||
break;
|
||||
case 1:
|
||||
default:
|
||||
clock = (machine==MCH_EGA) ? 16257000 : 28322000;
|
||||
break;
|
||||
}
|
||||
|
@ -1055,6 +1063,9 @@ void VGA_SetupDrawing(Bitu val) {
|
|||
if (vga.herc.mode_control & 0x2) clock=14318180/16;
|
||||
else clock=14318180/8;
|
||||
break;
|
||||
default:
|
||||
clock = 14318180;
|
||||
break;
|
||||
}
|
||||
}
|
||||
#if C_DEBUG
|
||||
|
@ -1130,6 +1141,7 @@ void VGA_SetupDrawing(Bitu val) {
|
|||
pheight = (480.0 / 350.0) * ( target_total / vtotal );
|
||||
break;
|
||||
case 3: //480 line mode, filled with 525 total
|
||||
default:
|
||||
pheight = (480.0 / 480.0) * ( 525.0 / vtotal );
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: vga_memory.cpp,v 1.50 2008-03-16 18:53:33 c2woody Exp $ */
|
||||
/* $Id: vga_memory.cpp,v 1.51 2008-08-06 18:32:35 c2woody Exp $ */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -182,7 +182,7 @@ public:
|
|||
return vga.mem.linear[addr];
|
||||
}
|
||||
void writeHandler(PhysPt start, Bit8u val) {
|
||||
Bit32u data=ModeOperation(val);
|
||||
ModeOperation(val);
|
||||
/* Update video memory and the pixel buffer */
|
||||
VGA_Latch pixels;
|
||||
vga.mem.linear[start] = val;
|
||||
|
@ -802,6 +802,7 @@ void VGA_SetupHandlers(void) {
|
|||
/* This should be vga only */
|
||||
switch (vga.mode) {
|
||||
case M_ERROR:
|
||||
default:
|
||||
return;
|
||||
case M_LIN4:
|
||||
newHandler = &vgaph.lin4;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: vga_other.cpp,v 1.22 2008-04-21 19:55:02 c2woody Exp $ */
|
||||
/* $Id: vga_other.cpp,v 1.23 2008-08-06 18:32:35 c2woody Exp $ */
|
||||
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
@ -456,10 +456,10 @@ static void write_hercules(Bitu port,Bitu val,Bitu iolen) {
|
|||
}
|
||||
}
|
||||
|
||||
static Bitu read_hercules(Bitu port,Bitu iolen) {
|
||||
/* static Bitu read_hercules(Bitu port,Bitu iolen) {
|
||||
LOG_MSG("read from Herc port %x",port);
|
||||
return 0;
|
||||
}
|
||||
} */
|
||||
|
||||
|
||||
void VGA_SetupOther(void) {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: vga_paradise.cpp,v 1.2 2008-01-12 17:37:48 c2woody Exp $ */
|
||||
/* $Id: vga_paradise.cpp,v 1.3 2008-08-06 18:32:35 c2woody Exp $ */
|
||||
|
||||
#include "dosbox.h"
|
||||
#include "setup.h"
|
||||
|
@ -39,7 +39,7 @@ typedef struct {
|
|||
Bitu biosMode;
|
||||
} SVGA_PVGA1A_DATA;
|
||||
|
||||
static SVGA_PVGA1A_DATA pvga1a = { 0, 0, 0, 0, 0, 0, 0 };
|
||||
static SVGA_PVGA1A_DATA pvga1a = { 0,0, 0,0,0,0,0, {0,0,0,0}, 0 };
|
||||
|
||||
|
||||
static void bank_setup_pvga1a() {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: vga_tseng.cpp,v 1.3 2008-02-26 08:55:29 qbix79 Exp $ */
|
||||
/* $Id: vga_tseng.cpp,v 1.4 2008-08-06 18:32:35 c2woody Exp $ */
|
||||
|
||||
|
||||
#include "dosbox.h"
|
||||
|
@ -50,7 +50,8 @@ typedef struct {
|
|||
Bitu biosMode;
|
||||
} SVGA_ET4K_DATA;
|
||||
|
||||
static SVGA_ET4K_DATA et4k = { 1, 0, /* the rest are 0s */ };
|
||||
static SVGA_ET4K_DATA et4k = { 1,0,0,0,0,0,0,0,0, 0,0, 0,0,
|
||||
{ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 0 };
|
||||
|
||||
#define STORE_ET4K(port, index) \
|
||||
case 0x##index: \
|
||||
|
@ -486,7 +487,7 @@ typedef struct {
|
|||
Bitu biosMode;
|
||||
} SVGA_ET3K_DATA;
|
||||
|
||||
static SVGA_ET3K_DATA et3k = { 0 /* and the rest are 0s as well */ };
|
||||
static SVGA_ET3K_DATA et3k = { 0,0,0,0,0,0,0,0,0,0, 0,0, 0,0, {0,0,0,0,0,0,0,0}, 0 };
|
||||
|
||||
#define STORE_ET3K(port, index) \
|
||||
case 0x##index: \
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: vga_xga.cpp,v 1.12 2008-01-12 17:37:48 c2woody Exp $ */
|
||||
/* $Id: vga_xga.cpp,v 1.13 2008-08-06 18:32:35 c2woody Exp $ */
|
||||
|
||||
#include <string.h>
|
||||
#include "dosbox.h"
|
||||
|
@ -774,6 +774,7 @@ void XGA_BlitRect(Bitu val) {
|
|||
break;
|
||||
default:
|
||||
LOG_MSG("XGA: DrawPattern: Shouldn't be able to get here!");
|
||||
srcval = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -859,6 +860,7 @@ void XGA_DrawPattern(Bitu val) {
|
|||
break;
|
||||
default:
|
||||
LOG_MSG("XGA: DrawPattern: Shouldn't be able to get here!");
|
||||
srcval = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue