diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-05-10 17:56:18 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-05-10 18:06:37 +0200 |
| commit | cd1f7309aed360770bbfb33ed91fb6fd951b6f0a (patch) | |
| tree | 4c8a045867281e3275d899a7b7cc2e7c535c91ba /graphics.c | |
| parent | f23764a0ec0b946d9d0c0dd1a2537c0d22849086 (diff) | |
| download | cardioid-cd1f7309aed360770bbfb33ed91fb6fd951b6f0a.tar.gz cardioid-cd1f7309aed360770bbfb33ed91fb6fd951b6f0a.tar.bz2 cardioid-cd1f7309aed360770bbfb33ed91fb6fd951b6f0a.zip | |
Diffstat (limited to 'graphics.c')
| -rw-r--r-- | graphics.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -7,13 +7,13 @@ #ifdef CARDIOID_RELEASE # define SDL_CALL(x) x #else -# define SDL_CALL(x) \ - SDL_ClearError(); \ - x; \ +# define SDL_CALL(x) \ + SDL_ClearError(); \ + x; \ if (*SDL_GetError() != '\0') { \ - SDL_Log("[ERROR SDL] %s at %s:%d\n\t"#x, \ + SDL_Log("[ERROR SDL] %s at %s:%d\n\t"#x, \ SDL_GetError(), __FILE__, __LINE__); \ - exit(EXIT_FAILURE); \ + exit(EXIT_FAILURE); \ } #endif @@ -141,6 +141,7 @@ static void event_handler(t_state *state) break; case SDL_WINDOWEVENT: + /* printf("%d\n", e.window.windowID); */ if (e.window.event == SDL_WINDOWEVENT_RESIZED) update_window_value(state, e.window.data1, e.window.data2); } |
