X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrfileman;a=blobdiff_plain;f=src%2Fmain.cc;h=ae84abdafb04c1f189d17a2fc0637c65f7dc02c5;hp=7e700a6ca661f8110081bda457a2e91bf6d12806;hb=f19edacadfd124dae0d6666a86fb1b6ca4df8969;hpb=65fa35533b5f8e26b57a31d5972a7649d71ad684 diff --git a/src/main.cc b/src/main.cc index 7e700a6..ae84abd 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; @@ -72,6 +73,16 @@ break_evloop: return 0; } +void app_resize(int x, int y) +{ + SDL_SetWindowSize(win, x, y); +} + +void app_fullscreen(int fs) +{ + SDL_SetWindowFullscreen(win, fs ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0); +} + void app_quit() { quit = true;