Make frameskip an integer.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4273
This commit is contained in:
parent
6ac1bcf9e7
commit
276b187181
3 changed files with 15 additions and 15 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue