X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrfileman;a=blobdiff_plain;f=src%2Fmain.cc;h=04f85236714a049353d92b91d8b1ae0473a404ed;hp=d7dea971de8104f9c739d19d122d0d89baded71f;hb=8afeabf06c79c755e5aaffa224e06c4abc92d833;hpb=818d6e49d86bc91748396a8c408cd84d17e10994 diff --git a/src/main.cc b/src/main.cc index d7dea97..04f8523 100644 --- a/src/main.cc +++ b/src/main.cc @@ -55,6 +55,7 @@ int main(int argc, char **argv) } time_msec = app_get_msec(); + time_sec = (double)time_msec / 1000.0; while(SDL_PollEvent(&ev)) { process_event(&ev); if(quit) goto break_evloop; @@ -77,7 +78,7 @@ void app_resize(int x, int y) SDL_SetWindowSize(win, x, y); } -void app_fullscreen(int fs) +void app_fullscreen(bool fs) { SDL_SetWindowFullscreen(win, fs ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0); }