Closed Adrian-Samoticha closed 1 month ago
@Adrian-Samoticha I'm afraid raygui is C, not C++ and static_cast
does not exist in C, maybe it can be addressed with a regular cast, feelf ree to send a PR with the fix.
@raysan5 You’re right, I somehow missed that. And indeed, a regular cast does indeed fix the issue. I’ll send the PR soon.
I get the following error when compiling with
-std=gnu++20
:Since conditional expressions between different enum types are now deprecated in C++20, perhaps
static_cast
should be used to cast one enum type into the other one first?Note: Please disregard the line numbers as I am using an outdated verson of
raygui
(which I may have accidentally formatted). In the latest version on themaster
branch (commit 6aae838), the line numbers should be 1642 and onwards.