implement file browser dialog
This commit is contained in:
@@ -349,6 +349,7 @@ int main(int argc, char** argv)
|
||||
bool running = true;
|
||||
unsigned long t0 = GetTickCount();
|
||||
unsigned long t1;
|
||||
float one_sec = 0;
|
||||
while (running)
|
||||
{
|
||||
// If there any message in the queue process it
|
||||
@@ -362,6 +363,15 @@ int main(int argc, char** argv)
|
||||
{
|
||||
t1 = GetTickCount();
|
||||
float dt = (float)(t1 - t0) / 1000.0f;
|
||||
|
||||
// force redraw every one second
|
||||
one_sec += dt;
|
||||
if (one_sec > 1.f)
|
||||
{
|
||||
one_sec = 0;
|
||||
App::I.redraw = true;
|
||||
}
|
||||
|
||||
if (dt > 1.0f / 60.0f)
|
||||
{
|
||||
t0 = t1;
|
||||
|
||||
Reference in New Issue
Block a user