Shut up a warning
The ASM is unaffected
This commit is contained in:
parent
d35c9cd09e
commit
2a70cbe89a
2 changed files with 7 additions and 7 deletions
12
src/Main.cpp
12
src/Main.cpp
|
@ -64,18 +64,18 @@ void PutFramePerSecound(void)
|
||||||
{
|
{
|
||||||
if (bFps)
|
if (bFps)
|
||||||
{
|
{
|
||||||
const int fps = GetFramePerSecound();
|
const unsigned long fps = GetFramePerSecound();
|
||||||
PutNumber4(WINDOW_WIDTH - 40, 8, fps, FALSE);
|
PutNumber4(WINDOW_WIDTH - 40, 8, fps, FALSE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int GetFramePerSecound(void)
|
unsigned long GetFramePerSecound(void)
|
||||||
{
|
{
|
||||||
unsigned int current_tick;
|
unsigned long current_tick;
|
||||||
static BOOL need_new_base_tick = TRUE;
|
static BOOL need_new_base_tick = TRUE;
|
||||||
static int frames_this_second;
|
static unsigned long frames_this_second;
|
||||||
static int current_frame;
|
static unsigned long current_frame;
|
||||||
static int base_tick;
|
static unsigned long base_tick;
|
||||||
|
|
||||||
if (need_new_base_tick)
|
if (need_new_base_tick)
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,4 +6,4 @@ extern HWND ghWnd;
|
||||||
extern BOOL bFullscreen;
|
extern BOOL bFullscreen;
|
||||||
|
|
||||||
void PutFramePerSecound(void);
|
void PutFramePerSecound(void);
|
||||||
int GetFramePerSecound(void);
|
unsigned long GetFramePerSecound(void);
|
||||||
|
|
Loading…
Add table
Reference in a new issue