Julien Portalier

Results 674 comments of Julien Portalier

Or replace `/` (float dividion) with `//` (integer division).

Compiler bug. If someone can find a workaround...

The window *does* appear but is closed immediately, while the loop continues running. Using `window.update` instead of `renderer.present` doesn't trigger the bug. Maybe LLVM's optimizations are reordering some statements, or...

Thanks for the investigation! That sounds quite plausible.

Sure! They look good. Can you open a PR with a few commits?

Please add some details or better, reproducible code. I gave no idea what you're doing and expecting...

Have a look to http://lazyfoo.net/SDL_tutorials/lesson31/index.php All samples are ports of Lazy Foo' tutorials, but I never went as far as reading a pixel color (lesson 31) and `Surface#pixels` is unavailable...

You can reopen `SDL::Surface`: ```crystal class SDL::Surface def pixels surface.pixels end end ``` Then you have a direct access to the underlying `void*` buffer of the surface, whose actual format...

No problem for me on Linux. Is the surface really 32-bit?

It seems to be a known bug in qemu. See https://github.com/docker/for-mac/issues/6049 for some pointers. There doesn't seem to be any fix planned for the time being :sob: Given this is...