From 87fdac7918d776a4c11b3880eef64b09b334aa1c Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Tue, 4 Jan 2022 18:36:24 +0100 Subject: linux build config and imgs --- commands/commands.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'commands/commands.cpp') diff --git a/commands/commands.cpp b/commands/commands.cpp index cdaf30b..1e9fb71 100644 --- a/commands/commands.cpp +++ b/commands/commands.cpp @@ -24,10 +24,10 @@ bool Commands_sdl::process_events () { SDL_GetMouseState(&mx, &my); resx = -1; resy = -1; - + SDL_Event e; while(SDL_PollEvent(&e) != 0) { - if(e.type == SDL_QUIT) { + if(e.type == SDL_QUIT) { return true; } if(e.type == SDL_KEYDOWN && e.key.repeat == 0) { @@ -67,4 +67,4 @@ void Commands_sdl::process_clicks () { void Commands_sdl::process_keys () { keys.clear(); -} \ No newline at end of file +} -- cgit v1.2.3-54-g00ecf