linije

Клон игре Color lines
git clone https://git.sr.ht/~strahinja/linije
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

чување 8af025361d1127520226f0e058a1f1e1f74a712b
родитељ e2faff2bd69184efc95c49a55088f7d60cd7c6d0
Аутор: Страхиња Радић <sr@strahinja.org>
Датум:   Fri, 28 Aug 2026 05:43:55 +0000

linije.c: Try to get rid of a MSYS2 kludge

Diffstat:
Mlinije.c | 11+++++++++--
измењених датотека: 1, додавања: 9(+), брисања: 2(-)

diff --git a/linije.c b/linije.c @@ -916,6 +916,9 @@ handle_event(struct State* state, SDL_Event* event) case SDL_EVENT_QUIT: state->running = 0; break; + case SDL_EVENT_WINDOW_EXPOSED: + state->redraw = 1; + break; case SDL_EVENT_WINDOW_RESIZED: state->redraw = 1; calculate_display_size(state); @@ -2353,9 +2356,13 @@ main(int argc, char** argv) * When moving a ball, the state of the screen remains stuck at the next-to-last * cell, until a mouse is moved, then it updates. This is a duct tape fix. */ -#if __WIN32 +/* 2026-08-28: Probably a result of needing to respond to + * SDL_EVENT_WINDOW_EXPOSED. Trying with that, now only to find a test machine + * with MSYS2... + */ +/*#if __WIN32 draw(&state); -#endif +#endif*/ while (SDL_PollEvent(&event)) handle_event(&state, &event);