From 757096e7df15c14b9b10352fa91663483f9e34f8 Mon Sep 17 00:00:00 2001 From: xolatile Date: Sun, 10 Aug 2025 00:19:46 +0200 Subject: all --- src/engine/main.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/engine/main.cpp') diff --git a/src/engine/main.cpp b/src/engine/main.cpp index aa9b2fe..83aebaa 100644 --- a/src/engine/main.cpp +++ b/src/engine/main.cpp @@ -249,7 +249,7 @@ void renderbackground(const char *caption, Texture *mapshot, const char *mapname } } glDisable(GL_BLEND); - if(!restore) swapbuffers(false); + if(!restore) swapbuffers(); } if(!restore) setbackgroundinfo(caption, mapshot, mapname, mapinfo); } @@ -338,7 +338,7 @@ void renderprogress(float bar, const char *text, GLuint tex, bool background) { bgquad(x, y, sz, sz); glDisable(GL_BLEND); } - swapbuffers(false); + swapbuffers(); } int keyrepeatmask = 0, textinputmask = 0; @@ -659,6 +659,7 @@ template static inline bool pumpevents(queue &events static int interceptkeysym = 0; static int interceptevents(void *data, SDL_Event *event) { + (void) data; switch(event->type) { case SDL_MOUSEMOTION: return 0; case SDL_KEYDOWN: @@ -812,7 +813,7 @@ void checkinput() { if(mousemoved) resetmousemotion(); } -void swapbuffers(bool overlay) { +void swapbuffers() { gle::disable(); SDL_GL_SwapWindow(screen); } @@ -877,11 +878,6 @@ COMMANDN(getfps, getfps_, "i"); bool inbetweenframes = false, renderedframe = true; -static bool findarg(int argc, char **argv, const char *str) { - for(int i = 1; i