Jon Daniel
Jon Daniel
Added screenshot function in #58
> Pushing 32-bit register is not a valid operation in 64-bit arch. The GNU `as` typically gets its options in `CCASFLAGS`. You can also change the arch by proper directives...
I've chosen to cast `ubyte a5` to `u16` ending up with `"g"((u16)a5)` and need to check `esp` load in `func_203`. Are the `ColourDistanceFunc` segfault and the `a5` parameter `func_203` related?
`display_palette` seems to contain `NULL` here. ```gas src/swars.sx:54379 jump_40980: mov $0x1e,%ecx mov $0x25,%ebx mov $0x2a,%edx 54379: mov display_palette,%eax call ac_LbPaletteFindColour ```
```sh (gdb) bt #0 LbPaletteFindColourUsingDistanceFunc (primaryDistance=0x566d66d0 , secondaryDistance=0x566d6690 , b=30 '\036', g=37 '%', r=42 '*', pal=0x0) at src/general/gpalette.c:185 #1 LbPaletteFindColour (pal=0x0, r=42 '*', g=37 '%', b=30 '\036') at src/general/gpalette.c:281 #2...
```sh uname -a 6.6.1-gentoo #1 SMP PREEMPT_DYNAMIC Thu Nov 9 05:40:10 CET 2023 x86_64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz GenuineIntel GNU/Linux ``` ```sh shaderc -v shaderc, bgfx shader compiler...
Similar SDL2_mixer problems arise using Gentoo Linux - https://bugs.gentoo.org/952114 - https://bugs.gentoo.org/955672 - https://bugs.gentoo.org/953901
@raysan5 Added images for one example. There are no platform dependent changes in the PR.
Is there any chance of getting a response?
@raysan5 All these changes are required and only in examples to fix none adaptive `viewport resize`/`gui element positions`. There are `unnecessary` calls to `GetScreenWidth()/GetScreenHeight()` that should be avoided adding `event...