Ray
2a566544d4
ADDED: Multiply security checks to avoid crashes on wrongly provided string data #4751
...
- REVIEWED: Checking `NULL` input on functions getting `const char *text`, to avoid crashes
- REVIEWED: `strcpy()` usage, prioritize `strncpy()` with limited copy to buffer size
- REPLACED: `strlen()` by `TextLength()` on [rtext] module
- REVIEWED: Replaced some early returns (but keeping others, for easier code following)
2025-12-11 12:59:55 +01:00
Ray
bc2057345b
REVIEWED: GetRandomValue(), explained the new approach to get more uniform random values range
2025-12-10 09:30:18 +01:00
Marcos De La Torre
f2a900a60d
[rcore] Fix modulo bias in GetRandomValue() ( #5392 )
...
* Fix modulo bias in GetRandomValue(); implement rejection sampling for uniformity
* Replace do-while with for-loop in GetRandomValue rejection sampling
2025-12-10 09:23:40 +01:00
Ray
3adfde42f7
REVIEWED: rlLoadTeexture(), max mipmap levels to use #5400
2025-12-10 09:21:33 +01:00
Ray
91ac3cc707
FIX: LoadRandomSequence(), using GetRandomValue() #5393
2025-12-09 20:02:38 +01:00
Gregory Mitchell
be6007be93
fix: sha1 computation on messages longer than 31 bytes ( #5397 )
2025-12-09 19:18:43 +01:00
Ray
8115b7e922
Update rmodels.c
2025-12-06 20:40:23 +01:00
BoneManSeth
fd8830948e
fix newer NDK version compiling errors ( #5389 )
...
target already gets assigned by the clang macro it points to, overwriting it causes it to target linux instead of android, making it check for usr directories instead of the NDK's directories
2025-12-06 20:01:47 +01:00
Ray
f9899a7182
Reviewed code formating
2025-12-06 20:00:19 +01:00
Jeffery Myers
561cc27403
[rModels] Support 16 bit vec3 values in gltf reader ( #5388 )
...
* Support 16 bit vec3 values coming from gltf
* Add support for 8 bit normals
2025-12-06 19:50:59 +01:00
Aly
78a81bf407
Fix ToggleBorderlessFullscreen() Not Hiding Taskbar ( #5383 )
...
* Use glfwSetWindowMonitor instead of Pos and Size GLFW functions
* Fix window not resetting properly when toggling out of fullscreen, formatting
2025-12-02 22:55:22 +01:00
Connor O'Connor
944567651c
replace sprintf with snprintf ( #5382 )
2025-12-02 22:49:55 +01:00
Connor O'Connor
1bbc8682f4
Fixed some typos and mispellings ( #5381 )
...
Specifically "occured" -> "occurred"
2025-12-02 22:48:06 +01:00
Ray
4724f7cf1b
REVIEWED: Comments for UpdateSound() specifying expected data format #5350
2025-11-30 19:02:38 +01:00
Ray
a568506265
REVIEWED: External libraries sdefl and sinfl to address #5367
2025-11-30 18:32:11 +01:00
Ray
ebce9fa97a
Update rcore_memory.c
2025-11-29 20:01:44 +01:00
Ray
18e1ec504f
Updated example
2025-11-29 18:20:06 +01:00
Ray
8f3cabcf76
Update rcore.c
2025-11-25 19:13:08 +01:00
Ray
47a8b554bc
**NEW**: PLATFORM_MEMORY backend
...
New platform backend for software rendering directly on RAM memory buffer
2025-11-24 15:38:58 +01:00
Ray
bd36610f91
Some formatting
2025-11-24 15:37:28 +01:00
Ray
7e3d6cbfa8
Update rcore.c
2025-11-23 23:16:32 +01:00
Ray
17dc2bb474
Update rcore.c
2025-11-23 22:58:15 +01:00
Ray
aaa893f668
Update rcore.c
2025-11-23 22:58:10 +01:00
Ray
e1b9857b14
Some TODOs and format reviews
2025-11-23 21:40:39 +01:00
Ray
f1719480e0
Minor format tweaks
2025-11-23 13:21:31 +01:00
Ray
6c3ef8d9b4
Remove trailing spaces
2025-11-22 20:15:50 +01:00
Jeffery Myers
90af210712
include malloc.h so the win32 platform can build in MSVC ( #5365 )
2025-11-20 08:00:23 +01:00
Ray
ba65bd7f99
WARNING: BREAKING: Redesigned SetSoundPan() and SetMusicPan() #5350
...
Now it goes from -1.0 (full left) to 1.0 (full right) being 0.0 center
2025-11-20 00:03:03 +01:00
Ray
d26435703f
Update rcore_desktop_win32.c
2025-11-19 13:18:13 +01:00
Ray
265fa7833c
Update rtext.c
2025-11-19 10:21:16 +01:00
Ray
f21c1cc6ae
Update rtext.c
2025-11-19 10:08:42 +01:00
Ray
ec828071ef
Update rtext.c
2025-11-19 10:04:01 +01:00
Adi Čaušević
e2233acdb0
feat: Optimize ImageClearBackground and ImageDrawRectangleRec with doubling strategy ( #5363 )
2025-11-19 08:58:43 +01:00
Robin ❤️
3f92c396a0
Fixed typo ( #5364 )
2025-11-19 08:56:32 +01:00
Ray
57e22d5fa0
Update rtext.c
2025-11-18 21:26:26 +01:00
Ray
86e00bde65
Update rcore_desktop_sdl.c
2025-11-18 16:30:48 +01:00
MikiZX1
b18f547d8f
Update rcore_desktop_sdl.c, fix crash when strncpy tries to copy using NULL pointer ( #5359 )
...
When SDL_GameControllerNameForIndex returns null, the app crashes. This was addressed earlier in PR#4859 though the fix submitted on PR #4859 was only fixing the crashing and not addressing the root cause.
2025-11-18 16:19:07 +01:00
Serhii Zasenko
be9a24e68c
Fix controller not available right after win init ( #5358 )
...
- Fix IsGamepadAvailable() returns false for an available controller immediately after window initialization
2025-11-18 16:17:58 +01:00
Ray
4dbe04b250
Update config.h
2025-11-13 11:26:54 +01:00
Ray
8ae2c9cf5f
FIX: LoadFontDataBDF() #5346
2025-11-12 10:22:56 +01:00
Ray
7f82da0031
Update rlsw.h
2025-11-11 17:40:21 +01:00
Ray
fcaea5b1a1
Remove trailing spaces
2025-11-11 17:39:53 +01:00
Ray
4e8b087ffe
REVIEWED: ComputeSHA256()
2025-11-11 17:15:40 +01:00
Ray
0b4815b8fe
WARNING: REMOVED: GIT recording option, added example
2025-11-09 13:43:08 +01:00
Le Juez Victor
4ff296bf0b
fix clipping issue ( #5342 )
2025-11-08 11:28:15 +01:00
JohnnyCena123
12ce106661
[rcore][glfw] fix IsWindowFocused() inverted logic ( #5333 )
2025-11-04 18:17:37 +01:00
iann
48c1619d20
added consistent behavior for texture in opengl11 draw states and fixed loadobj texcoord behavior for opengl11 context ( #5328 )
2025-11-04 17:52:53 +01:00
NoNameAuthenticated
e92832fc6d
Update rcore_desktop_sdl.c ( #5332 )
2025-11-04 17:50:54 +01:00
Ray
cfb43fa999
Update rcore_desktop_sdl.c
2025-11-03 09:45:18 +01:00
komunre
ed68a4fcce
Fixed bugs in SDL backend ( #5325 )
2025-11-03 09:43:20 +01:00