Commit Graph

11210 Commits

Author SHA1 Message Date
rdb 2c9997ee6d x11: Remove methods added erroneously during bad merge 2025-11-12 11:47:48 +01:00
omn14 a01e039669 x11: Add function for detecting auto repeat key events (#1735)
Cherry-picked from master
2025-11-12 11:44:28 +01:00
rdb 23782ec511 task: Also check for subclasses of coroutine
Apparently Nuitka uses custom coroutine classes that inherit from Python's own coroutine class, causing PyCoro_CheckExact to be inadequate

In the future we may want to check the ABC or check the existence of send/throw methods
2025-11-12 11:41:51 +01:00
jtfedd 56cdea16c9 pgui: Fix bugs with pgSliderBar dragging
Closes #1722
2025-11-10 11:27:47 +01:00
rdb 77fa04adb0 glgsg: Fix typo causing SSBO support not always detected 2025-10-06 21:02:07 +02:00
rdb b417d6a373 backport: A few thread safety things for free-threaded builds 2025-08-28 11:34:37 +02:00
rdb aa554a2130 task: Backport fix for generators without send()
Backport of 00b5357b8e
2025-08-28 10:25:11 +02:00
rdb 66c9264f30 bam: Add forward compatibility for bam 6.46
See #1657 and 052bd77030
2025-08-03 12:00:10 +02:00
rdb ab357ea120 tinydisplay: Try to fix SDL compile errors
Fixes #1708
2025-07-28 15:29:56 +02:00
rdb 0a94971f1a event: Fix memory leak I just introduced in 41e4cf5 2025-07-28 15:26:35 +02:00
omg-really 85e4d0734d bam2egg: Fix support for more than two tags
Fixes #1725
2025-07-28 15:20:01 +02:00
rdb 6ef4699a48 collide: Fix potential use-after-free with transform cache disabled
Fixes #1733
2025-07-28 15:10:31 +02:00
rdb 41e4cf5d11 event: Fix `await gather()` returning first item instead of tuple
Fixes #1738
2025-07-28 14:58:42 +02:00
rdb de4865b324 putil: grab GIL while decreffing function 2025-07-28 10:01:11 +02:00
rdb a6a386aab3 text: Fix text-native-antialias not properly taking effect 2024-11-07 11:34:02 +01:00
rdb 16431748de parametrics: fix RopeNode breaks due to float imprecision
Fixes #1325
2024-11-06 22:51:40 +01:00
rdb 0a4d22ad9f express: Fix VFS mount points not being listed as directories
Fixes #1244
2024-11-06 13:20:03 +01:00
rdb 7926d1047e text: Unbreak small caps support with text-use-harfbuzz
Fixes #1666
2024-10-31 15:01:06 +01:00
rdb 89c0371cbb putil: BamWriter doc fix, initialize _root_node field properly 2024-10-31 13:07:02 +01:00
rdb 2a6f4fc6ff putil: Fix file_texture_mode on BamWriter not being writable 2024-10-31 13:07:02 +01:00
rdb 32ad388a51 gobj: Don't try to resolve empty alpha filename when writing bam 2024-10-31 13:07:02 +01:00
rdb f47b34d2a1 Fix remaining uses of ._PyType member in extension code
This should be replaced with Dtool_GetPyTypeObject, hiding the implementation details a bit so that we can more easily change the underlying structure if we need later

Also adds Py_NewRef to py_compat.h, backporting from master
2024-10-30 13:26:34 +01:00
rdb 0ba2aadcd6 Introduce Py_IS_TYPE, use for Py_TYPE comparisons 2024-10-30 13:17:11 +01:00
rdb 64454b1c9f Replace direct uses of ob_type, which gives problems in nogil build 2024-10-30 13:17:11 +01:00
rdb 9cbc45b9bf collide: Handle CollisionBox bam read without 2D info 2024-10-28 11:57:27 +01:00
rdb d758d2b232 pgui: Fix crash when PGEntry removes itself w/ background focus
Fixes #1650
2024-10-24 16:41:56 +02:00
rdb 822d35d15b putil: Minor SimpleHashMap::remove() optimization 2024-10-14 14:26:20 +02:00
rdb 52a7224d6e Fix various compiler warnings 2024-10-14 12:05:27 +02:00
rdb cd2e3dfde9 dxgsg9: Fix crash on window event after `close_window()` 2024-10-10 01:08:54 +02:00
rdb beb49b3cd3 dxgsg9: Fix some format handling, support for r32f and rgba32f textures 2024-10-03 13:43:22 +02:00
rdb 0ea0d5fa2b dxgsg9: Fix crash when copying inverted framebuffer to texture RAM 2024-10-03 13:36:02 +02:00
rdb 51876c6116 dxgsg9: Fix crash with buffer when there is no depth buffer 2024-10-03 13:36:02 +02:00
rdb c05a63f4ae pipeline: Fix compile error without pipelining enabled
Closes #1684

[skip ci]
2024-09-21 10:55:05 +02:00
rdb cdafd81764 Fix compilation issues with Python 3.13 2024-09-19 15:47:50 +02:00
rdb d7ede81aa3 cocoa: Fix compile error with MacOSX 10.6 SDK 2024-09-19 11:15:44 +02:00
rdb 9f493f588d display: Fix significant memory leak on newer macOS versions
It seems the Metal-based OpenGL driver uses autorelease a lot for resources that last only a single frame, so we need to create an autorelease pool around the frame lest the resources will only get cleaned up at application exit.
2024-09-19 00:23:06 +02:00
rdb 756fe2e72b cocoa: Fix a very minor memory leak in DisplayInformation 2024-09-18 23:51:09 +02:00
rdb e2fb2d1241 cocoa: Prevent eating keyUp when switching to FS from macOS' FS 2024-09-16 13:39:16 +02:00
rdb c7bcec1ff5 cocoa: Exit macOS' fullscreen mode when switching fullscreen
Prevents black screen when switching to fullscreen
2024-09-16 13:39:16 +02:00
rdb 82b9a1266c cocoa: Fix error when switching to FS while macOS' FS is active 2024-09-16 13:39:16 +02:00
rdb 9e87af9dd7 linmath: Fix compiler warning with gcc 14 2024-08-14 19:09:20 +02:00
rdb 8d1524b675 distort: Fix unprotected debug output 2024-08-14 19:09:08 +02:00
rdb 8c8cbeea98 linmath: For repr, use as much precision as needed for roundtrip
Will use as few digits as is necessary to ensure that round-tripping the same number with pstrtod will result in the same vector.  This prevents eg. 3.3 formatting as 3.29999995 while still ensuring that two floats that are not equal (other than nan) are guaranteed to have a different string representation.

Uses a hacky pftoa function that can be abandoned as soon as we adopt C++17, which has to_chars that does what we need

Fixes #1671
2024-08-07 17:24:11 +02:00
rdb 122453811d glgsg: Fix clear of offscreen buffer if back buffers requested 2024-06-30 11:53:17 +02:00
rdb a655784d8d x11: attempt to fix UTF-8 window titles (see #209) 2024-05-16 20:30:27 +02:00
rdb 2436a06527 glgsg: Better error when invalid ShaderPtrSpec type is encountered 2024-05-14 22:45:01 +02:00
Disyer a9206041d9 ffmpeg: Use ch_layout in favor of removed channel_layout and channels
Closes #1641
2024-04-08 13:32:51 +02:00
rdb 5da013e2e9 text: Properly handle surrogate pairs in text on Windows
Fixes #1629
2024-04-08 12:12:00 +02:00
rdb 2adc167f26 windisplay: Fix regression related to fullscreen switching
Fixes #1594
2024-04-08 11:29:43 +02:00
rdb 0e2a706ec8 audio: Fix changing sound time not working on macOS
Fixes #1607
2024-03-27 12:02:12 +01:00