Antonis Geralis
7a4eb2d54c
Enhance scaling checks for framebuffer and window
Add additional checks for render dimensions to prevent scaling issues.
2 miesięcy temu
Antonis Geralis
8f7ee9ee10
Revert mistake
2 miesięcy temu
Antonis Geralis
4839a073ac
Refactor GLFW window size and scaling management
Updated window size handling and scaling logic for GLFW on high DPI displays, ensuring proper synchronization between logical and framebuffer sizes.
2 miesięcy temu
Ray
13f9112d8c
Update rcore_desktop_sdl.c
2 miesięcy temu
Ray
f16fb065ea
Update rcore_template.c
2 miesięcy temu
Ray
66392fe0ae
REVIEWED: `rlGetPixelDataSize()`, correct compressed data size calculation per blocks #5416
2 miesięcy temu
Ray
720dd22491
REVIEWED: `rlLoadTexture()`, un complete texture do to issue on mipmap loading #5416
2 miesięcy temu
Ray
ca578b8b08
Update raylib.sln
2 miesięcy temu
Ray
4b760091da
REVIEWED: Window scaling with HighDPI on macOS #5059
2 miesięcy temu
Ray
6d562e5e87
REVIEWED: HiggDPI content scaling on changing monitors with different DPI #5335 #5356
Note that high-dpi awareness must be enabled by users and `CORE.Window.render` reports the scaled framebuffer size, while `CORE.Window.screen` reports the logical size.
`ToggleBorderlessWindow()` has also been reviewed to be consistent with scaling, if monitor physical display size is reported as 1920x1080 but there is a content scale of 1.5, then the borderless fullscreen window will be 1280x720, with the 1920x1080 framebuffer
2 miesięcy temu
Ray
7553e9d586
REVIEWED: Gamepads on latest `SDL2 2.32.8` and `SDL3 3.3.6` #5403
2 miesięcy temu
Ray
80ad96acc2
Fix #5413
2 miesięcy temu
Ray
7a5e8aa3a5
Update rcore_android.c
2 miesięcy temu
caszu
1c94e94873
[rcore] Implement `FLAG_WINDOW_ALWAYS_RUN` on Android ( #5414 )
2 miesięcy temu
dtasada
33adda1983
fixed build errors with zig. now compatible with zig master 0.16.0-dev.1593+c13857e50. still backwards compatible with 0.15.1 ( #5415 )
2 miesięcy temu
Ray
f031b2f4f4
Alignment with other platform backends, avoid unneeded includes
2 miesięcy temu
Ray
1c7240a01d
Revert "REVIEWED: Alignment with other platforms"
This reverts commit cf0d6fc664 .
2 miesięcy temu
Ray
cf0d6fc664
REVIEWED: Alignment with other platforms
2 miesięcy temu
Ray
615fc36eeb
Fix #5406
2 miesięcy temu
Ray
cbe31759ab
Fix #5405
2 miesięcy temu
RANDRIA Luca
d74556d35c
Modify text_words_alignment.c ( #5411 )
2 miesięcy temu
ALONZO Robin
8d246fdaff
Fix EXTERNAL_CONFIG_FLAGS being defined even when no custom config is used when building with zig ( #5410 )
2 miesięcy temu
Ray
a0fd5ab1d9
Update rmodels.c
2 miesięcy temu
Ray
9a337f3b3b
ADDED: Support software renderer on Web, blitting framebuffer data directly to a 2d canvas
This improvement is just a prove of concept, at this moment `PLATFORM_WEB` is limited in terms of software rendering by `GLFW` that only allows creating a WebGL canvas context with `glfwCreateWindow()`.
We can skip that call but then some GLFW functionality is not available (windowing, inputs). The best solution is replacing GLFW completely by a pure Emscripten implementation for `PLATFORM_WEB`.
2 miesięcy temu
Ray
5025009860
REVIEWED: Make sure all variables are initialized on definition, prioritize one line per variable definitions
2 miesięcy temu
Kaluub
6f5cabf60c
Fix misleading example text. ( #5409 )
2 miesięcy temu
Ray
c96669e123
REVIEWED: Webpage reference comments starting with `REF:`, more consistent with `TODO:` and `NOTE:` comments
2 miesięcy temu
Ray
9c04b1de82
REVIEWED: Store canvas name id at platform initialization
Useful to support multiple canvases running different wasm instances in same webpage
2 miesięcy temu
Ray
b465b4e2ea
RENAMED: Variable names for consistency, `textLength` (length in bytes) vs `textSize` (measure in pixels)
2 miesięcy temu
Ray
2853b28d6d
REVIEWED: Avoid program crash if GPU data is tried to be loaded before `InitWindow()` #4751
Following raylib design, a warning log message is shown and program can continue execution.
Some early return checks have been added on most critical functions.
[rtext] Previous implementation checking `isGpuReady` cross-module variable is not needed any more, resulting in a more decoupled code, load failure is managed at rlgl level
2 miesięcy temu
Jordi Santonja
8fa5f1fe2c
[examples] Fixed `shaders_game_of_life` for web ( #5399 )
* [examples] Fixed `shaders_game_of_life` for web
* Fixed image loadig for rexm
2 miesięcy temu
Jeffery Myers
6f7cd3a9ab
[core] Camera2d comment updates ( #5401 )
* Make the comments on the camera 2d fields more clear about what space each one is in.
* rlparser: update raylib_api.* by CI
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2 miesięcy temu
github-actions[bot]
ae438e804e
rlparser: update raylib_api.* by CI
2 miesięcy temu
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)
2 miesięcy temu
Ray
71a35f661e
Update rexm.c
2 miesięcy temu
Ray
2d8e346945
Update update_examples.yml
2 miesięcy temu
Ray
f3f02b3e17
REXM: examples validation and update
2 miesięcy temu
Ray
dad93abcf8
REXM: Ignore some warnings on GCC/Clang
2 miesięcy temu
Ray
5e8118daf2
Update shaders_game_of_life.c
2 miesięcy temu
Ray
bc2057345b
REVIEWED: `GetRandomValue()`, explained the new approach to get more uniform random values range
2 miesięcy temu
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
2 miesięcy temu
Ray
3adfde42f7
REVIEWED: `rlLoadTeexture()`, max mipmap levels to use #5400
2 miesięcy temu
Ray
91ac3cc707
FIX: `LoadRandomSequence()`, using `GetRandomValue()` #5393
2 miesięcy temu
Ray
19a1683641
REXM: Updated examples
2 miesięcy temu
Gregory Mitchell
be6007be93
fix: sha1 computation on messages longer than 31 bytes ( #5397 )
2 miesięcy temu
JordSant
efeccfef61
[examples] Add `textures_cellular_automata` ( #5395 )
* [examples] Add `textures_cellular_automata`
* Comparison always true. Fixed
* Tabs to spaces
2 miesięcy temu
JordSant
366300aafe
[examples] Add `shaders_game_of_life` ( #5394 )
* [examples] Add `shaders_game_of_life`
* Declaration hides another variable same name
2 miesięcy temu
Sebastian Pineda
215ad78d5b
Fix build.zig typos ( #5390 )
* fix small typo
* other small typos
2 miesięcy temu
Ray
8115b7e922
Update rmodels.c
2 miesięcy temu
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
2 miesięcy temu