Ray
1f9d7c6f88
Merge pull request #4866 from marler8997/restoreWindowDesc
...
Improve description of RestoreWindow
2025-03-28 17:55:45 +01:00
Jonathan Marler
af16f7823a
Improve description of RestoreWindow
...
Restore window currently says it sets the window state to:
"not minimized/maximized"
However, if a window is maximized and then minimized, it's typical that
it would restore back to being maximized, which is what seems to happen
from my testing. I've reworded the description to better reflect
this behavior.
2025-03-28 10:39:22 -06:00
Ray
44f4400f5b
Merge pull request #4864 from marler8997/excludeRglfw
...
[build] only include rglfw.c for glfw platform
2025-03-27 08:30:32 +01:00
Jonathan Marler
508ca5c80f
[build] only include rglfw.c for glfw platform
...
It looks like raylib doesn't require rglfw.c if you're using the RGFW
backend. I'm guessing the same is true for SDL but I haven't tested.
Excluding this one file brings the raylib library down from 6.9 MB to
6.3 MB for RGFW.
However, one of the examples requires the symbols from rglfw.c,
to accomodate this I added a function that will check whether raylib has
already included rglfw and if not include it for that one example.
2025-03-26 21:14:46 -06:00
Ray
001e78014c
Merge pull request #4860 from marler8997/fixDivide0
...
Avoid divide by 0 in core_custom_frame_control example
2025-03-26 18:01:37 +01:00
Jonathan Marler
611c43719f
Avoid divide by 0 in core_custom_frame_control example
2025-03-26 10:58:59 -06:00
Ray
beaadc9185
Merge pull request #4856 from marler8997/oneBuild
...
[build] remove examples/build.zig, incorporate into main build.zig
2025-03-25 22:39:13 +01:00
Ray
3d83c1c796
Format tweak
2025-03-25 19:27:55 +01:00
Jonathan Marler
ac17de5074
[build] remove examples/build.zig, incorporate into main build.zig
...
Removes the second build.zig in the examples directory and incorporates it
into the main build.zig. This gives the zig build system the data needed to
know if the raylib library needs to be rebuilt when running any example.
2025-03-25 11:05:59 -06:00
Ray
909c83fd4a
Avoid path filtering on TakeScreenshot()
2025-03-25 16:22:46 +01:00
Ray
32c8f396c2
Merge branch 'master' of https://github.com/raysan5/raylib
2025-03-25 16:21:53 +01:00
Ray
63e608d485
comment tweak
2025-03-24 15:07:36 +01:00
Ray
f5c96302d5
Merge pull request #4850 from sleeptightAnsiC/fix_rcore__ChangeDirectory_TRACELOG
...
[rcore] fix: TRACELOG upon successfully changing directory
2025-03-23 19:13:12 +01:00
sleeptightAnsiC
8e9c3ceb57
[rcore] fix: TRACELOG upon successfully changing directory
...
InitWindow() prints CWD during initialization,
but ChangeDirectory() does not, which is quite confusing when you start
messing with CWD. Now said function should log similar message.
2025-03-22 21:20:17 +01:00
Ray
46cd07d2c7
WARNING: REVERTED CHANGE THAT BROKE BATCHING!!! #4849
...
I'm sorry... I did not detect this change was breaking batching... :(
2025-03-21 17:17:45 +01:00
Ray
266fba1111
Minor tweaks
2025-03-21 17:07:55 +01:00
Ray
add4da8fb3
Merge pull request #4845 from bamless/log-zoom
...
[examples] use logarithmic zoom scaling in 2d camera examples
2025-03-20 10:38:59 +01:00
Fabrizio Pietrucci
e140aca1b5
Increase zoom factor in core_2d_camera.c
...
This compensate for slower zoom speed due to log scaling
2025-03-19 20:19:19 +01:00
Fabrizio Pietrucci
8b84c999d2
Use logarithmic zoom scaling in 2d camera zoom examples
2025-03-19 19:48:04 +01:00
Ray
cd9206956c
Merge pull request #4843 from theundergroundsorcerer/DrawCircleSector-quickfix
...
Add early return when angles are equal in DrawCircleSector and DrawCircleSectorLine functions.
2025-03-18 11:29:32 +01:00
Myrddin Krustowski
589ad0a33d
Add early return to circle sector functions when angles are equal.
...
Prevents unnecessary work and division by zero (when segments=0) in DrawCircleSector/DrawCircleSectorLines when startAngle equals endAngle, matching existing behavior in DrawRing/DrawRingLines.
2025-03-18 11:51:58 +02:00
Ray
2f63a15630
Merge pull request #4836 from JeffM2501/unscale_on_resize
...
[rcore] Correctly handle window size on resize in auto-scaled HIGHDPI environment
2025-03-14 17:15:14 +01:00
Jeffery Myers
d56ab670c3
spaces not tabs
2025-03-14 08:18:26 -07:00
Ray
bbbdd1f080
Merge pull request #4839 from aidonmaster/patch-1
...
Converting int to char
2025-03-14 08:09:49 +01:00
Aidon
513753c394
Converting int to char
...
Fixes warning: narrowing conversion caused by trying to convert int to unsigned char
2025-03-13 21:50:20 -03:00
Ray
cb830bed72
Increased depth size and clip distances to avoid z-fighting issues
2025-03-13 16:34:39 +01:00
Ray
d0e638cc31
REVIEWED: Platform DRM messages...
2025-03-13 11:42:16 +01:00
Jeffery Myers
4bed3741c1
Unscale the window size on resize if we are doing automatic HighDPI scaling.
2025-03-12 14:16:50 -07:00
Ray
749a512f13
REVIEWED: ScanDirectoryFiles*() #4833
2025-03-12 12:44:40 +01:00
Ray
654d5c80c2
Merge pull request #4833 from MykBamberg/master
...
[rcore] Use snprintf to prevent buffer overflow in path construction
2025-03-12 12:40:25 +01:00
Ray
a0318e67aa
Merge pull request #4835 from NiamhNightglow/master
...
Guard against DEBUG Redefinition
2025-03-12 11:29:11 +01:00
Nia Nightglow
fffbbad2f7
Guard against DEBUG Redefinition
...
Undefine DEBUG to avoid external redefinition
warnings/conflicts. This is probably a common
definition for many external build systems'
debug configurations.
This ensures raylib will not emit
a warning about the DEBUG definition being
redefined in external build systems.
2025-03-12 00:13:01 -05:00
MykBamberg
daa2921476
[rcore] Use snprintf to prevent buffer overflow in path construction
2025-03-12 01:38:39 +01:00
Ray
b80250bee4
Merge pull request #4807 from RicoP/RicoP/sinfl_bsr
...
[rcore] sinfl_bsr fix for TCC
2025-03-11 08:32:32 +01:00
Rico P
0934cdba48
fix C++ style cast
2025-03-11 07:09:10 +01:00
Rico P
7dc409d060
potential fix for MSVC compile error
2025-03-11 07:03:57 +01:00
Rico P
e7872a700d
update sinfl_bsr
2025-03-10 20:57:48 +01:00
Ray
7f8bf2233c
REVIEWED: Formating to follow raylib conventions
2025-03-10 17:08:18 +01:00
Ray
bd8e59f18d
Replace size_t by unsigned int
2025-03-10 17:07:18 +01:00
Ray
4c8c72778d
Remove trailing spaces
2025-03-10 17:04:29 +01:00
Ray
9c62a7823b
Update Makefile
2025-03-10 17:04:14 +01:00
Colleague Riley
0853c5b03f
[rcore][RGFW] bug fixes ( #4798 )
...
* update RGFW to 1.6
* properly handle RGFW_quit events
* fix rcore_desktop_rgfw bugs
* update
* update
* uncomment out
2025-03-10 16:50:40 +01:00
Amy Wilder
61a026f7ef
[examples] Reorganize some conditions to fix overlap bugs ( #4829 )
...
* Reorganize some conditions to fix overlap bugs
* Fix edge case where control point selection outlives mouse down
2025-03-09 11:40:24 +01:00
Ray
5bda46960c
REVIEWED: Linux workflow to run on ubuntu-latest
...
Previous runner `ubuntu-20.04` is deprecated and being removed soon: https://github.com/actions/runner-images/issues/11101
2025-03-08 18:49:50 +01:00
David Vanderson
bbeade636c
build.zig.zon: update hashes ( #4826 )
2025-03-08 12:42:17 +01:00
10aded
097e80d1c4
added comment to fingerprint line per recommendation from the standard 'build.zig.zon' file generated by 'zig init' in Zig 0.14.0 ( #4827 )
2025-03-08 02:21:50 +01:00
sleeptightAnsiC
f430d72a8c
[examples] fix: use quotation marks when including raylib.h ( #4821 )
...
...so it will always prioritize local version of raylib instead of
system-wide installations, which is a huge problem when testing any
changes done locally to raylib as it might cause silent mismatch issues.
There were only 4 examples affected by this issue which were using
`#include <raylib.h>`. Other examples use proper `#include "raylib.h"`
Fixes: https://github.com/raysan5/raylib/issues/4820
2025-03-07 19:24:53 +00:00
zewenn
590f793755
Update build.zig.zon to use the new zig v0.14 version ( #4819 )
2025-03-07 19:24:01 +00:00
Kaluub
9ba0cdbe6d
Fix GetCurrentMonitor comments. ( #4812 )
2025-03-07 19:21:08 +00:00
Ashish Bhattarai
f1385f3aec
Fix stb_truetype composite glyph scaling logic ( #4811 )
2025-03-04 18:53:11 +01:00