Commit Graph

5845 Commits

Author SHA1 Message Date
Josh Tynjala
837534c05d IOSHelper: fix lime test ios with Xcode 16 or newer
The ios-deploy tool no longer works with new iOS SDKs that don't have DeveloperDiskImage.dmg, but Xcode added new commands that can be used in the terminal to install and launch on connected devices.
2024-12-02 11:24:45 -08:00
Josh Tynjala
c3b749b415 MacPlatform: fix duplicate shell scripts when building without -clean and copyIfNewer decides the HL executable isn't newer 2024-12-02 10:29:11 -08:00
Josh Tynjala
4812f6a1dd MacPlatform: fix error that says @rpath/libhl.dylib is not found when using HashLink nightly builds for HL/C
Added `@executable_path` to the rpath.
2024-11-20 15:44:08 -08:00
Josh Tynjala
61ec7d0913 PlatformSetup: for lime setup hashlink, display the "leave empty to use default" message only when a custom version is not configured yet
If a custom version is configured, users will think that just pressing enter will clear it, but it won't. It'll just keep the current value. To actually clear the value, they need to run lime config remove HL_PATH instead.
2024-11-20 09:35:57 -08:00
Joseph Cloutier
a03c0c31f3 Fix whitespace. 2024-11-19 20:09:22 -05:00
win11
c0e1a1b4a4 Clean up PNG and JPEG encoding properly 2024-11-19 14:45:25 -08:00
Chris Speciale
1b6a884692 Update scripts 2024-11-14 09:11:11 -05:00
Josh Tynjala
3d10ea7eb6 PlatformSetup: improve HL_PATH message with capital L in Lime and add bundled descriptor 2024-11-13 11:16:20 -08:00
Josh Tynjala
5388c47a8b PlatformSetup: more formal grammar 2024-11-13 11:15:06 -08:00
Josh Tynjala
19b571d8c2 HashlinkHelper, PlatformSetup: proper casing in user-facing messages for HashLink name 2024-11-13 11:13:16 -08:00
Josh Tynjala
4e56bd9bf2 PlatformSetup: specify that absolute path is required for config values 2024-11-13 11:11:07 -08:00
Josh Tynjala
68f531eaba openal: custom version.h was not updated when switching to new version 2024-11-11 14:20:55 -08:00
Josh Tynjala
de665a5fe5 IOSHelper: when -verbose is specified, print the name of the selected iOS simulator
This can be useful for debugging when the way that we select a simulator needs to be tweaked. For instance, I recently fixed an issue where "Unavailable" simulators could be automatically selected, but I saw only a UUID instead of the device name in the output, so it was hard to figure out which simulator had been selected.
2024-11-11 08:57:49 -08:00
Josh Tynjala
35d23c6ced XCodeHelper: fix issue where lime test ios -simulator may try to install app on unavailable iOS simulators 2024-11-11 08:50:32 -08:00
player-03
051f4d5f00 Merge pull request #1858 from giuppe/patch-1
Fix: attribute "gradle-plugin" of android config is never read
2024-11-07 19:51:12 -05:00
Giuppe
b52223e360 Fix: attribute "gradle-plugin" in Project.xml <android> tag is never read 2024-11-08 01:34:50 +01:00
Josh Tynjala
d1dd5bccf6 Merge branch 'develop' into 8.3.0-Dev 2024-11-05 13:57:08 -08:00
player-03
7c96738d9f Merge pull request #1542 from Stencyl/packed-asset-library-preloader
Display preloader progress for packed asset libraries.
2024-11-03 17:43:14 -05:00
Josh Tynjala
36b14e9469 prepare for 8.2.1 8.2.1 2024-10-31 15:22:56 -07:00
Chris Speciale
6de4b67620 CFFI fix
Accept 3 values instead of 2. Incidentally, I thought this was going to be a rather simple straightforward change, but I suppose not.
2024-10-30 13:23:37 -04:00
Chris Speciale
c6165350c6 Font: renderGlyphs should use the internal __setSize() 2024-10-30 13:17:50 -04:00
Chris Speciale
d2562997bf Update CairoBindings to use a default of 72 dpi for fonts
We use a default of 72 for now to ensure text is formatted correctly. Not entirely sure why we are stuck on 72 but that is an investigation for the future.
2024-10-30 13:14:32 -04:00
Chris Speciale
17bd36ac29 Fix compilation for cpp 2024-10-30 13:08:21 -04:00
Chris Speciale
fa77a6b370 Font: Make sure we pass dpi value 2024-10-30 13:04:06 -04:00
Chris Speciale
2f99776336 Font: Set 72 as default dpi for backwards compatibility 2024-10-30 12:56:16 -04:00
Chris Speciale
579efa5351 Font: Allow setting dpi internally
This fixes some unexpected changes in text rendering for OpenFL which rely on a private function in Lime. Previously we defaulted at 72 dpi, which apparently is expected to layout the text properly. Most displays are 96 dpi or higher today, so we should probably look into this. For RenderGlyph, which was previously broken over several versions, we will now use a dpi of 96 for now. In the next version of lime, we absolutely should alter the function signature to allow for renderGlyph to accept a dpi argument.
2024-10-30 12:49:30 -04:00
Chris Speciale
dbfd6615c0 Merge branch 'develop' of https://github.com/openfl/lime into develop 2024-10-30 12:20:14 -04:00
Chris Speciale
e6fa4e73d4 Revert "SetSize should use 96 dpi for now"
This reverts commit 9cbdc83605.
2024-10-30 12:12:58 -04:00
Josh Tynjala
c4faf58ff0 freetype: roll back to freetype version 2.9.1
tag VER-2-9-1

Starting with freetype 2.10.0, the sum of the ascent and descent values seem to be more likely to be less than the baseline-to-baseline measurement (called the font's height), which is the font designer's recommend distance between baselines. However, OpenFL doesn't account for the full baseline-to-baseline height at all, so with smaller ascent and descent values, lines render with smaller gaps between them. OpenFL needs to update its TextEngine algorithm to use the height of the line instead of adding ascent and descent together alone, and then we can update freetype. Updating TextEngine is not a trivial change, and may likely require time to discover bugs and stabilize, so it's better to roll back the freetype update for now, and apply it again later after OpenFL can handle it properly.
2024-10-29 15:48:38 -07:00
Chris Speciale
e65e863918 Native RenderGylph should handle alpha properly 2024-10-28 23:38:18 -04:00
Chris Speciale
9cbdc83605 SetSize should use 96 dpi for now
I think it should probably use 96 dpi instead of 72.... In the next minor version of Lime I think we should change the function sig to allow a dpi argument.
2024-10-28 23:02:28 -04:00
Chris Speciale
85414fce46 Font: Fix renderGlyph to render correctly
Accounts for some changes to the native code called through cffi. We use 32 bit space (24 bit color) to create our image. We had some problems using 8 bit color previously. This might be a breaking change to anyone expecting an 8 bit image buffer, but it wasn't working for several versions anyway and this api is not used for anything within lime to render text as is.
2024-10-28 22:58:23 -04:00
Chris Speciale
4673b91c65 Fix RenderGlyph
We change the way RenderGlyph populates the binary data here. It's a little heavier than the 8-bit method used previously but I was having issues getting that to work properly with `Image`.
2024-10-28 22:51:15 -04:00
Josh Tynjala
802ae3518e System: expand documentation of exit() method
Includes explanation that Sys.exit() bypasses Lime's ability to shut down its C++ subsystems, so System.exit() is recommended as best practice instead of Sys.exit().
2024-10-25 09:13:48 -07:00
Chris Speciale
6a4099861e OpenALBindings: Avoid deadlock when Sys.exit() is called
This change eliminates the cleanup attempt of the current OpenAL context and associated system resources. A change in OpenAL 1.20.0 made it unlikely that we will be able to clean up things in this way moving forward. We should steer users toward using `lime.system.System.exit()` or petition a change in the haxe stdlib to allow us to hook into Sys.exit(). 

I am not 100% satisfied with this, so perhaps we will find another solution. In the end, I think the benefit of updating OpenAL supersedes any inconvenience here.

Closes https://github.com/openfl/lime/issues/1803
2024-10-25 11:08:15 -04:00
Chris Speciale
e24ab07125 Revert "Downgrade to OpenAL 1.20.0"
This reverts commit 54f7734d7f.
2024-10-23 23:39:25 -04:00
Chris Speciale
a5d980cf75 Revert "Remove missing file path"
This reverts commit f60d8a75c5.
2024-10-23 23:39:20 -04:00
Chris Speciale
2ae713d180 Revert "Downgrade OpenAL to 1.19.1"
This reverts commit 583e742734.
2024-10-23 23:39:11 -04:00
Chris Speciale
583e742734 Downgrade OpenAL to 1.19.1
This still solves https://github.com/kcat/openal-soft/pull/227 which seems to be fixed in 1.19.1
2024-10-23 22:31:09 -04:00
Chris Speciale
f60d8a75c5 Remove missing file path
Removes an expected file introduced in 1.20.1
2024-10-23 21:25:05 -04:00
Chris Speciale
54f7734d7f Downgrade to OpenAL 1.20.0 2024-10-23 21:22:56 -04:00
player-03
5b4fc0c71f Merge pull request #1852 from player-03/HashLink_Tls_workaround
Work around ThreadPool error when targeting HashLink in Haxe 4.0-4.1.
2024-10-22 14:31:30 -04:00
player-03
579a7cd61b Work around compile error in specific cases.
This appears to have been a bug in Haxe 4.0-4.1's HashLink target. `value++` failed, but `value = value + 1` was fine.
2024-10-22 13:49:03 -04:00
Josh Tynjala
448206cf40 Release checklist 2024-10-22 09:12:34 -07:00
Josh Tynjala
f73ea770b4 Release Checklist 2024-10-22 09:06:12 -07:00
Chris Speciale
866c7c6507 Update Changelog for 8.2.1 2024-10-22 07:33:04 -04:00
Chris Speciale
e480067c07 Bump haxelib version
Prepare for next patch release
2024-10-22 07:25:19 -04:00
Chris Speciale
a8939e9951 Merge pull request #1834 from gepatto/8.2.0-Dev
set correct paths for ndll for linxuarm and linuxarm64 (raspberrypi)
2024-10-22 07:17:56 -04:00
player-03
4c987ef1cc HL didn't support threads in Haxe 3. 2024-10-21 19:51:14 -04:00
Josh Tynjala
1871349077 actions: fix typo in curl output path 8.2.0 2024-10-21 13:40:08 -07:00