Age | Commit message (Collapse) | Author |
|
|
|
Rename `window_get_real_size`, add position counterpart.
|
|
`window_get_position_with_decorations`.
|
|
and `WINDOW_MODE_FULLSCREEN` to improve multi-window handling.
|
|
Currently Input::get_singleton()->parse_input_event(mb); is
called twice for mouse-button-up events when dropping in a different
window on linuxbsd.
|
|
Fix burning CPU with udev disabled on Flatpak
|
|
|
|
Add support for font weight and stretch selection when using system fonts.
Add function to get system fallback font from a font name, style, text, and language code.
Implement system font support for Android.
Use system fonts as a last resort fallback.
|
|
Fixes #67355.
|
|
The loaders have been generated through hpvb's dynload-wrapper, although
they had to be heavily handpatched to workaround some already reported
issues with it. I added a note to each generated file to account for
that.
As GLAD uses X11 stuff directly, I had to define the GLAD_GLX_NO_X11
macro to not let do it that, and handle myself the display loading and
screen handling part myself, which wasn't that hard but it's still
something worth saying.
I plan to improve greatly the X11 backend (including this aspect) but,
as the release isn't that far and I'm also working on the Wayland
backend, this will do for now, I hope.
|
|
Fixes #68722.
Co-authored-by: alcomposer <alex.w.mitchell@gmail.com>
|
|
Add vsync to Windows platform
|
|
This is accomplished through the addition of a GLAD GLX loader in the
`thirdparty` directory.
This is another step towards a nice Wayland/X11 interoperation.
|
|
[fontconfig] Reject font substitutes if non-alias name was used.
|
|
Regenerate GL loader code with GLAD 2
|
|
|
|
Cache OS_LinuxBSD::get_system_dir
|
|
GLAD 1 creates unusable loaders for EGL, while the newly released GLAD 2
does not, so for consistency I thought that it would be a good idea to
uniform things beforehand. While it had some API changes some renames
were all that was needed and everything works like before, at least on
the Wayland branch.
I've kept the structure identical, although this new generator has quite
a few hefty features, such as a single header mode.
I've also added GLAD to `thirdparty/README.md`, but I haven't specified
that in the commit title because it's a very small "fix".
|
|
|
|
Add a nullptr-check, before accessing gl_manager
|
|
coauthor: @bruvzg
On linuxbsd and macOS the WINDOW_EVENT_MOUSE_ENTER was not sent,
when the mouse became visible again after a mouse_mode-change.
|
|
Fix static object destructors being called on gpu selection with X11
|
|
|
|
|
|
Do not strip spaces at the end of file names of dropped files
|
|
|
|
|
|
linuxbsd: move all X11 stuff in its own directory
|
|
This allows implementing `DisplayServer`s like Wayland without making a
mess in the source tree.
|
|
|
|
Fix build with Vulkan disabled and no Vulkan headers installed.
|
|
Unify usage of GLOBAL/EDITOR_GET
|
|
Make creating window do not flicker when specify custom position
|
|
Fix `DisplayServer.has_feature()` claiming X11 has native icon support
|
|
|
|
Fix Godot exiting with unexpected failure code
|
|
Native icons are not supported by the X11 DisplayServer, unlike
Windows and macOS.
|
|
|
|
|
|
to be more accurate and friendly
|
|
|
|
The exit code is initialized as EXIT_FAILURE to indicate failures during
startup. Closing the Game window via the window manager does not
change the exit code, so the program exists with EXIT_FAILURE.
This PR set the exit code to EXIT_SUCCESS when initialization was
successful just before starting the main loop.
|
|
Keep rendering context window size in sync when resizing
|
|
On X11 we rely on ConfigureNotify event to update rendering context
window size, but we don't get such event when resizing
programmatically, only when done "manually" by resizing the window
etc.
|
|
|
|
Fetch video adapter driver name and version from OS
|
|
|
|
Replace all TODO uses of `#warning` by proper TODO comments, and will open
matching bug reports to keep track of them.
We don't have a great track record fixing TODOs, but I'd wager we're even
worse for fixing these "TODO #warning" so we should prohibit this usage.
|
|
Remove usage of unitialized variables
|
|
Automatically use execinfo for crash handler on *BSD and musl-based Linux
|