diff --git a/include/render.h b/include/render.h index 6c8df98a..291ef418 100644 --- a/include/render.h +++ b/include/render.h @@ -58,8 +58,8 @@ typedef struct { float fps; } src; struct { - Bitu count; - Bitu max; + int count; + int max; Bitu index; Bit8u hadSkip[RENDER_SKIP_CACHE]; } frameskip; diff --git a/scripts/count-bugs.py b/scripts/count-bugs.py index d6fb83fe..8bf09c35 100755 --- a/scripts/count-bugs.py +++ b/scripts/count-bugs.py @@ -23,7 +23,7 @@ from bs4 import BeautifulSoup # then script will return with status 1. Simply change this line if you # want to set a different limit. # -MAX_ISSUES = 100 +MAX_ISSUES = 99 def summary_values(summary_table): diff --git a/scripts/count-warnings.py b/scripts/count-warnings.py index 3b67b363..bc76b49c 100755 --- a/scripts/count-warnings.py +++ b/scripts/count-warnings.py @@ -23,7 +23,7 @@ import sys # then script will return with status 1. Simply change this line if you # want to set a different limit. # -MAX_ISSUES = 380 +MAX_ISSUES = 375 # For recognizing warnings in GCC format in stderr: # diff --git a/src/cpu/cpu.cpp b/src/cpu/cpu.cpp index bc1c576e..37916028 100644 --- a/src/cpu/cpu.cpp +++ b/src/cpu/cpu.cpp @@ -32,7 +32,7 @@ #include "support.h" Bitu DEBUG_EnableDebugger(void); -extern void GFX_SetTitle(Bit32s cycles ,Bits frameskip,bool paused); +extern void GFX_SetTitle(Bit32s cycles ,int frameskip,bool paused); #if 1 #undef LOG diff --git a/src/dos/dos_execute.cpp b/src/dos/dos_execute.cpp index 543ce108..b2a99869 100644 --- a/src/dos/dos_execute.cpp +++ b/src/dos/dos_execute.cpp @@ -88,7 +88,7 @@ static void RestoreRegisters(void) { reg_sp+=18; } -extern void GFX_SetTitle(Bit32s cycles,Bits frameskip,bool paused); +extern void GFX_SetTitle(Bit32s cycles,int frameskip,bool paused); void DOS_UpdatePSPName(void) { DOS_MCB mcb(dos.psp()-1); static char name[9]; diff --git a/src/gui/render.cpp b/src/gui/render.cpp index 941fe76f..6db94cfe 100644 --- a/src/gui/render.cpp +++ b/src/gui/render.cpp @@ -376,11 +376,11 @@ forcenormal: } switch (render.src.bpp) { case 8: - render.src.start = ( render.src.width * 1) / sizeof(Bitu); - if (gfx_flags & GFX_CAN_8) - gfx_flags |= GFX_LOVE_8; - else - gfx_flags |= GFX_LOVE_32; + render.src.start = ( render.src.width * 1) / sizeof(Bitu); + if (gfx_flags & GFX_CAN_8) + gfx_flags |= GFX_LOVE_8; + else + gfx_flags |= GFX_LOVE_32; break; case 15: render.src.start = ( render.src.width * 2) / sizeof(Bitu); @@ -534,7 +534,7 @@ void RENDER_SetSize(Bitu width,Bitu height,Bitu bpp,float fps,double ratio,bool RENDER_Reset( ); } -extern void GFX_SetTitle(Bit32s cycles, Bits frameskip,bool paused); +extern void GFX_SetTitle(Bit32s cycles, int frameskip,bool paused); static void IncreaseFrameSkip(bool pressed) { if (!pressed) return; diff --git a/src/gui/sdl_gui.cpp b/src/gui/sdl_gui.cpp index 9640b065..f516e6de 100644 --- a/src/gui/sdl_gui.cpp +++ b/src/gui/sdl_gui.cpp @@ -39,7 +39,7 @@ extern Bit8u int10_font_14[256 * 14]; extern bool MSG_Write(const char *); -extern void GFX_SetTitle(Bit32s cycles, Bits frameskip, bool paused); +extern void GFX_SetTitle(Bit32s cycles, int frameskip, bool paused); static int cursor, saved_bpp; static int old_unicode; diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index 6a1fdc00..87a45ebf 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -286,19 +286,19 @@ extern bool CPU_CycleAutoAdjust; bool startup_state_numlock=false; bool startup_state_capslock=false; -void GFX_SetTitle(Bit32s cycles,Bits frameskip,bool paused){ - char title[200]={0}; - static Bit32s internal_cycles=0; - static Bit32s internal_frameskip=0; - if(cycles != -1) internal_cycles = cycles; - if(frameskip != -1) internal_frameskip = frameskip; +void GFX_SetTitle(Bit32s cycles,int frameskip,bool paused){ + char title[200] = { 0 }; + static Bit32s internal_cycles = 0; + static int internal_frameskip = 0; + if (cycles != -1) internal_cycles = cycles; + if (frameskip != -1) internal_frameskip = frameskip; if(CPU_CycleAutoAdjust) { sprintf(title,"DOSBox %s, CPU speed: max %3d%% cycles, Frameskip %2d, Program: %8s",VERSION,internal_cycles,internal_frameskip,RunningProgram); } else { sprintf(title,"DOSBox %s, CPU speed: %8d cycles, Frameskip %2d, Program: %8s",VERSION,internal_cycles,internal_frameskip,RunningProgram); } - if(paused) strcat(title," PAUSED"); + if (paused) strcat(title," PAUSED"); SDL_WM_SetCaption(title,VERSION); }