Sasha Szpakowski
b4e9731dfb
Add LOVE_EXPORT to a couple macOS functions called from the exe.
2022-12-29 10:27:52 -04:00
Miku AuahDark
c342339fee
Define LOVE_EXPORT on non-Windows.
...
With GCC or Clang, LOVE_EXPORT is defined as __attribute__((visibility("default"))).
2022-12-28 13:51:08 +08:00
Sasha Szpakowski
a51d45b1a3
Reduce source:tell drift after a streaming Source loops.
...
Fixes #1810
2022-12-04 19:36:38 -04:00
Miku AuahDark
822d363dfa
Remove test #undef from previous commit.
2022-08-26 11:48:46 +08:00
Miku AuahDark
3c2b1b888e
Properly pause all audio processing in Android when minimized.
...
This uses ALC_SOFT_pause_device extension which is available since
OpenAL-soft 1.16. We guarantee almost 100% availability of this extension
since we've been using OpenAL-soft in Android since beginning.
Fixes #1828
2022-08-26 11:45:25 +08:00
slime
8495cefd3b
opengl: fix creating compressed array textures with > 1 layer.
...
Fixes #1817 .
2022-08-09 20:37:48 -03:00
slime
870021b8bd
Potentially fix a crash when calling Text:add("").
...
#1824
2022-07-24 16:23:56 -03:00
Alex Szpakowski
5175b0d1b5
Windows: fix some cases of stuttering in windowed mode.
...
Use DwmFlush instead of OpenGL vsync, when specific conditions are met. Fixes #1628 .
2022-04-17 11:26:06 -03:00
Alex Szpakowski
b3b1317f61
linux: fix issues if certain codepaths are hit while signal handlers are temporarily off.
2022-04-15 23:43:30 -03:00
Alex Szpakowski
e512eff37b
Fix love.threaderror when the error message is empty.
...
Fixes #1775
2022-04-15 23:31:57 -03:00
Yan
09725dd3b9
Windows: Fix compile error: cast from 'HINSTANCE' to 'int' loses precision
2022-03-13 00:26:04 +08:00
Alex Szpakowski
878ad785bc
Remove obsolete macOS window min size workaround.
...
Fixes #1444 .
The reason for the SetWindowMinSize call after exiting fullscreen doesn't seem to be needed anymore, and it was breaking setFullscreen(false) in Linux.
2022-01-16 18:41:14 -04:00
Alex Szpakowski
65667c0f18
Fix sRGB texture internal formats in OpenGL ES 3.
2022-01-16 10:30:56 -04:00
Alex Szpakowski
8e7fd10b6f
Update copyright year for 2022
2021-12-31 18:33:40 -04:00
Miku AuahDark
78a915c8f4
Update dr_flac to 0.12.33
2021-12-31 10:09:36 +08:00
Alex Szpakowski
cf0a45f601
Fix non-stream buffers uploading redundant data when a sub-range is modified.
...
https://love2d.org/forums/viewtopic.php?f=4&t=92458
2021-12-28 15:10:09 -04:00
Alex Szpakowski
cee8f8ae48
Fix a compiler warning
2021-12-24 11:26:11 -04:00
Miku AuahDark
ede0ad0a20
Fix ENet error on certain system with >48-bit pointers.
...
Fixes love2d/love-android#222
2021-12-19 09:47:45 +08:00
megagrump
b359311832
accept Data objects in newFileData
2021-12-13 09:20:17 +01:00
Miku AuahDark
380cc1033e
Change luax_runwrapper chunk name prefix.
2021-12-12 09:34:08 +08:00
Miku AuahDark
fb815edc28
Change luaL_loadbuffer chunkname with prefixes.
2021-12-12 09:23:00 +08:00
Alex Szpakowski
7e271fc53e
Use SDL's rumble APIs for Joystick:setVibration, when available.
...
Fixes #1756
2021-12-11 11:52:42 -04:00
Alex Szpakowski
ebd5f13456
Fix missing ByteData:clone and DataView:clone implementations.
...
Fixes #1754
2021-12-07 19:51:40 -04:00
Alex Szpakowski
7310fde7b9
glslang: fix compilation on certain newer compilers
...
This is already fixed in the latest glslang source code, but updating may be too risky for love 11.x.
2021-12-04 13:11:01 -04:00
Alex Szpakowski
b54aaf65ca
Fix the default error handler drawing when love.graphics is inactive.
...
love.graphics.isActive() is false on mobile devices when the app isn't in the foreground. On iOS there can be a few frames between when the app is backgrounded and when the OS pauses it, where it's not valid to call OpenGL functions or present the screen.
2021-12-04 11:58:00 -04:00
Alex Szpakowski
b87034404e
newVideo: slightly more descriptive error when given an invalid file
2021-11-24 21:15:51 -04:00
Alex Szpakowski
ff12dbbd69
Merge pull request #1729 from MikuAuahDark/fix1728
...
Break OggDemuxer::readPage loop on EOF.
2021-11-24 21:07:04 -04:00
Alex Szpakowski
d0e22fb56e
Merge pull request #1739 from s-walrus/fix/font-getwrap-final-newline
...
Fix #1707 : Font:getWrap() removing final newline charancter
2021-11-20 16:43:56 -04:00
Alex Szpakowski
bd741a8c78
Fix incorrect particle offsets when Quads are used without setOffset.
...
Fixes #1741 .
2021-11-19 21:44:04 -04:00
Miku AuahDark
0f9e598ebb
Fixed love.filesystem.getDirectoryItems() in Android with new fusing mehod.
2021-11-13 14:34:54 +08:00
Alex Szpakowski
888051d01e
Potential very hacky workaround for arm64 JIT allocation issues.
...
Try to reserve blocks of executable memory before external library code claims the address space. LuaJIT on arm64 currently has a very limited range of memory it can use for JIT code.
2021-11-12 21:58:49 -04:00
Miku AuahDark
1bb22d2e90
Set game source path when using virtual archive in Android.
...
This will also prevent double `love.filesystem.setSource()` call
in that case.
2021-11-05 15:22:03 +08:00
Miku AuahDark
3a18a2ab0d
Use GameActivity.buildFileLookup via JNI to build file tree.
...
Turns out AAssetDir_getNextFilename() intentionally excludes directories,
thus the custom archive backend only sees the top-level files.
2021-11-05 13:55:14 +08:00
Miku AuahDark
b79b99bbaa
Use specialized logic when loading C modules in Android.
2021-11-02 17:54:13 +08:00
Semyon Yentsov
a57d207a57
Fix bug #1707
2021-11-01 01:37:18 +03:00
Alex Szpakowski
e27a71f798
Move boot.lua to src/modules/love/ with raw string literal format.
...
Split it up into 3 files to keep under VS2013's raw string literal character limit.
Now boot.lua doesn't need a regeneration step when it's modified.
2021-10-19 21:22:26 -03:00
Alex Szpakowski
0f4adbab0d
update stb_image from 2.26 to 2.27
2021-10-16 21:28:22 -03:00
Alex Szpakowski
9b8a422d95
update lodepng to latest code
2021-10-16 21:25:05 -03:00
Alex Szpakowski
4574805486
Make rounded rectangles more robust.
...
- rx and ry parameters are set to 0 if they're negative.
- automatic points calculation doesn't cause an unnecessarily large amount of points when rx or ry are greater than half the rectangle's size.
2021-10-10 22:08:56 -03:00
Alex Szpakowski
4a579bf2a7
Merge pull request #1730 from zombrodo/fix/1721-printf-wrap
...
Fix #1721 : floor result of scaling kerning based on dpi
2021-09-24 23:01:51 -03:00
Miku AuahDark
75a3e5db01
Fix VS2013 compilation of a066e18.
2021-09-25 08:17:41 +08:00
Miku AuahDark
de368ade4a
Break OggDemuxer::readPage loop on EOF.
2021-09-21 22:52:50 +08:00
Miku AuahDark
a066e18aa6
Register custom Lua PANIC handler that shows message box.
...
Some users complained that LOVE simply closes when it reaches
certain memory limit. Note that this is not a foolproof solution.
See the comments.
The real fix for this is to switch LuaJIT to GC64 mode on x64.
2021-09-15 23:22:32 +08:00
Alex Szpakowski
16ebaea390
Fix DXT1 textures which use 1 bit alpha-cutout.
...
Note that premultiplied alpha blending must be used with DXT1 alpha cutout textures if linear filtering is used, otherwise transparent black pixels will be blended with opaque non-black pixels resulting in dark fringes.
2021-09-05 12:55:32 -03:00
Jack Robinson
bfca659e37
Fix #1721 : floor result of scaling kerning based on dpi
2021-08-31 21:22:06 +12:00
Miku AuahDark
216d5ca4b2
Fix love.displayrotated passes boolean instead of string
...
Fixes #1722
2021-08-21 14:31:44 +08:00
Alex Szpakowski
d899fe96b6
update dr_flac
2021-05-30 21:27:34 -03:00
Alex Szpakowski
d419795a28
Expand stb_image thread-local workaround to apply to iOS devices
2021-05-30 21:12:45 -03:00
Alex Szpakowski
042b0ffe31
Fix previous workaround commit...
2021-05-30 16:06:11 -03:00
Alex Szpakowski
13523f5a5a
Update stb_image
2021-05-30 16:04:54 -03:00