Commit Graph

5667 Commits

Author SHA1 Message Date
Sasha Szpakowski f58418aa4e CI: fix linux build 2026-06-22 19:25:11 -03:00
Sasha Szpakowski ab991d2d26 CI: build using branches that have new luajit 2.1 syntax extensions 2026-06-22 19:08:00 -03:00
Sasha Szpakowski 84fe074d06 vulkan+windows: tell the driver we don't want exclusive fullscreen, when in desktop-fullscreen mode. 2026-06-21 21:32:35 -03:00
Sasha Szpakowski 52c6b886cf TextBatch:getWidth/getHeight can return fractional numbers 2026-06-21 20:38:25 -03:00
Sasha Szpakowski 061f96fab1 Possibly fix Linux compile error 2026-06-21 16:40:11 -03:00
Sasha Szpakowski 7d49d880d7 Improve truetype font text positioning with fractional glyph advances and DPI-scaled coordinates.
Disallow Font:setFallbacks for fonts that have different DPI scales.
It's still too easy to render text at a non-integer pixel when fractional DPI scales are used, so maybe a more thorough redesign would be useful.

Fixes #2318.
Fixes #2168.
2026-06-21 16:30:43 -03:00
Sasha Szpakowski a7679a5509 default error handler's text is positioned better for fractional DPI scales
maybe we need a snapToPixel function in the future, if we stick with this DPI scaling model...
2026-06-21 16:16:38 -03:00
Sasha Szpakowski 02c6a3053f metal: fix compile error 2026-06-21 15:16:53 -03:00
Sasha Szpakowski 142ce87335 graphics: improve setScissor's handling of fractional DPI-scaled coordinates. 2026-06-21 14:58:22 -03:00
Sasha Szpakowski 3eedfb6e1e replace love.window.requestAttention implementation with SDL_FlashWindow. 2026-06-18 21:13:19 -03:00
Sasha Szpakowski a3dae27a72 Disallow requiring love.graphics and love.window in threads. 2026-06-18 20:49:08 -03:00
Sasha Szpakowski 4b43c74a29 remove some redundant code.
SDL3's default behaviour matches what love does with the hint, so the code isn't needed.
2026-06-18 20:09:18 -03:00
Sasha Szpakowski 2f8c88c218 vulkan: explicitly specify triple-buffering instead of minBuffers+1. 2026-06-14 21:28:35 -03:00
Sasha Szpakowski 8884fb3f10 graphics: clean up some shared backbuffer settings code. 2026-06-14 19:31:40 -03:00
Sasha Szpakowski 6b144d3494 vulkan: add more detail to some error messages 2026-06-14 16:48:34 -03:00
Sasha Szpakowski f1a55bc36d CI: use vs2026 when building for Windows 2026-06-13 15:59:33 -03:00
Sasha Szpakowski 515cae1818 windows cmake: convert path separators to cmake's expected ones when installing extra dlls 2026-06-13 15:58:26 -03:00
Sasha Szpakowski f4e81fbb5f metal: fix love.graphics.clear not working in some situations.
Fixes #2327.
2026-06-10 21:07:16 -03:00
Sasha Szpakowski e13fd06e59 Fix love.graphics.newBuffer not showing the right error message when there's no window. 2026-06-06 10:27:43 -03:00
Sasha Szpakowski c95b8cf790 graphics: add rgb10a2ui pixel format. 2026-05-31 21:45:30 -03:00
Sasha Szpakowski b4f6bcfc67 Add refreshrate field to love.window.getFullscreenModes table entries. 2026-05-29 22:46:33 -03:00
Sasha Szpakowski 83ebf679b5 love.window.setFullscreen(true, "exclusive") always uses the desktop's display mode.
This avoids switching the display mode when toggling fullscreen or alt-tabbing, after toggling fullscreen.
2026-05-29 22:05:22 -03:00
Miku AuahDark 06e8da722c Revert "Run Windows runners on Windows Server 2022."
This reverts commit 454f56f176.
2026-05-20 19:20:02 +08:00
Miku AuahDark 454f56f176 Run Windows runners on Windows Server 2022.
GitHub trying to keep their Visual Studio version stable? Impossible.
* actions/runner-images#14017
* actions/runner-images#14004
2026-05-20 19:11:39 +08:00
Sasha Szpakowski 9653b42522 Merge pull request #2320 from Syyrion/zlib-decompress-fix
Fix zlib decompression incomplete data check
2026-05-18 11:42:10 -03:00
Syyrion 189eb51a38 fix incomplete data check 2026-05-17 15:02:58 -04:00
Sasha Szpakowski 7bdef86d3c fix love.graphics.newBuffer not requiring locations for vertex buffer formats. 2026-05-04 20:20:33 -03:00
Sasha Szpakowski db54893780 mac/iOS: fix build 2026-05-02 16:18:45 -03:00
Sasha Szpakowski f542481995 vulkan/metal: fix Shader:send(name, DataObject) truncating the data in some cases.
Fixes #2313
2026-05-02 16:06:08 -03:00
Sasha Szpakowski 6fbc7ebde5 Merge pull request #2309 from shelvacu-forks/patch-async-setposition
lua.window.setPosition: add param waitForSync
2026-04-30 20:54:22 -03:00
Sasha Szpakowski 5ede9f994a Merge pull request #2312 from MartinCornelius/tests/graphics-resetProjection
Add love.graphics.resetProjection test
2026-04-30 20:52:08 -03:00
MartinCornelius 3094e20150 tests(graphics): add resetProjection test 2026-04-30 20:25:40 +02:00
Sasha Szpakowski 5f34b8d1c8 opengl: fix buffer:clear causing an opengl error with some drivers 2026-04-29 20:11:03 -03:00
Sasha Szpakowski f8984432b7 minor grammar improvement in pull request template 2026-04-29 20:09:52 -03:00
Shelvacu b1dba5939e lua.window.setPosition: add param waitForSync
if waitForSync is false, then SDL_SyncWindow is not called, and so the
method may return before the requested changes actually happen.

This is backwards-compatible with previous behaviour
2026-04-19 17:59:29 -07:00
Sasha Szpakowski 347006f67d android: fix compilation 2026-04-17 23:30:32 -03:00
Sasha Szpakowski 36341ed9f7 love.filesystem's require searcher for C modules strips hyphen prefixes.
Matches the behaviour of Lua 5.1 and 5.2's built-in C module searcher.
The error message when a valid C module is loaded but no valid function is found is also improved.
Fixes #2307.
2026-04-17 23:25:36 -03:00
Sasha Szpakowski ef13719aeb Merge pull request #2277 from sarodz/issue-1990
Fix buffer range merging in HarfbuzzShaper to check cluster contiguity

Fixes #1990
2026-04-16 23:25:37 -03:00
Sasha Szpakowski 281cc42723 Revert "update gitignore"
This reverts commit 57f4ebfb5f.
2026-04-16 23:04:31 -03:00
Sasha Szpakowski 453752d405 minor grammar changes 2026-04-16 21:52:38 -03:00
Sasha Szpakowski a4e7cdbb10 add basic pull request template
inspired by SDL
2026-04-16 21:49:08 -03:00
Sasha Szpakowski 999a23c65a vulkan: attempt to work around swapchain bug in older Linux drivers when going fullscreen
fixes #2244
2026-04-16 20:53:54 -03:00
Sasha Szpakowski 90aff3bdbd graphics: fix state tracking when an indexed batched draw has 0 indices.
fixes #2291.
2026-04-09 20:31:40 -03:00
Sasha Szpakowski 8ae57772b1 remove IRC reference from readme 2026-04-09 19:37:09 -03:00
Sasha Szpakowski 0e0a7d2155 don't allow invalid types for the second param of readbackTexture. 2026-03-31 20:38:52 -03:00
Sasha Szpakowski 4d25b8c97a vulkan: fix initialization if love.graphics is loaded before love.window. 2026-03-31 20:21:14 -03:00
Sasha Szpakowski e01908e342 shaders: texture3D() causes a deprecation warning, similar to texture2D() 2026-03-31 20:03:57 -03:00
Sasha Szpakowski 762672882e physics: newCircleBody and friends return the shape as a second return value. 2026-03-30 23:08:32 -03:00
Sasha Szpakowski b0a2cb4d7d Add love.joystick.setBackgroundEvents(bool) and hasBackgroundEvents.
Resolves #2270.
2026-03-30 21:13:13 -03:00
Sasha Szpakowski 9d3b1c7c73 Merge pull request #2297 from nikeinikei/validation_fix
fix validation warnings relating to swapchain
2026-03-28 16:11:57 -03:00