X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrfileman;a=blobdiff_plain;f=src%2Fmain.cc;h=d7dea971de8104f9c739d19d122d0d89baded71f;hp=942db477141fc07d4bb152d45d8224c147d87fa6;hb=818d6e49d86bc91748396a8c408cd84d17e10994;hpb=dd39621d642e417f1e343cbf813205a658272639 diff --git a/src/main.cc b/src/main.cc index 942db47..d7dea97 100644 --- a/src/main.cc +++ b/src/main.cc @@ -18,7 +18,7 @@ int main(int argc, char **argv) } SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1); - SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 1); + SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4); SDL_GL_SetAttribute(SDL_GL_FRAMEBUFFER_SRGB_CAPABLE, 1); int x = SDL_WINDOWPOS_UNDEFINED; @@ -72,6 +72,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;