ParticlesII: some fixing for 64bit.

Fixes #15425.
This commit is contained in:
Adrien Destugues 2019-12-31 21:45:37 +01:00
parent d8e072f49f
commit 0e70db5de3
1 changed files with 4 additions and 4 deletions

View File

@ -32,8 +32,8 @@ public:
NWindowScreen(status_t*);
private:
void ScreenConnected(bool);
long MyCode();
static long Entry(void*);
int32 MyCode();
static int32 Entry(void*);
// handy stuff
void set_frame_rate(float fps) {frame_pause = (bigtime_t)((1000 * 1000)/fps);}
// special for demos
@ -271,14 +271,14 @@ NWindowScreen::ScreenConnected(bool connected)
}
long
int32
NWindowScreen::Entry(void* p)
{
return ((NWindowScreen*)p)->MyCode();
}
long
int32
NWindowScreen::MyCode()
{
bigtime_t trgt = system_time() + frame_pause;