Commit 45eed10141f9c71b779fe072ee0f0fff54a36b8a

Thomas de Grivel 2024-02-28T09:46:44

fix demo_gl toasters on mac

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/libc3/window/sdl2/demo/window_sdl2_demo.c b/libc3/window/sdl2/demo/window_sdl2_demo.c
index 2278820..8033870 100644
--- a/libc3/window/sdl2/demo/window_sdl2_demo.c
+++ b/libc3/window/sdl2/demo/window_sdl2_demo.c
@@ -179,10 +179,10 @@ bool window_sdl2_demo_load (s_window_sdl2 *window)
                 lightspeed_load, lightspeed_render, lightspeed_unload,
                 window);
   if (! gl_sprite_init(&g_sprite_toaster, "img/flaps.256.png",
-                       4, 1, 4, point_per_pixel))
+                       4, 1, 4, 1))
     return false;
   if (! gl_sprite_init(&g_sprite_toast, "img/toast.128.png",
-                       1, 1, 1, point_per_pixel))
+                       1, 1, 1, 1))
     return false;
   sequence_init(window->sequence + 2, 60.0, "03. Toasters",
                 toasters_load, toasters_render, toasters_unload,