[Scummvm-git-logs] scummvm master -> a75d53a5ec056c41a4131f6a1b356c9904da73d6

larsamannen noreply at scummvm.org
Tue May 9 12:34:02 UTC 2023


This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
4de20a8032 IOS7: Adjust the frame on safeAreaInsetsDidChange calls
a75d53a5ec DISTS: Add ITSAppUsesNonExemptEncryption property to Info.plist


Commit: 4de20a8032fbc7e0d90ffd12124e0a17d18fc958
    https://github.com/scummvm/scummvm/commit/4de20a8032fbc7e0d90ffd12124e0a17d18fc958
Author: Lars Sundström (l.sundstrom at gmail.com)
Date: 2023-05-09T14:33:56+02:00

Commit Message:
IOS7: Adjust the frame on safeAreaInsetsDidChange calls

There is a race condition when iOS updates the safe insets and
the view is updated on orientation changes. When rotating the
device the callback function interfaceOrientationChanged is
called. This triggers rebuildSurface to be called, which will
call updateOutputSurface, which will trigger initSurface. That
function will finally will adjust the main frame towards the
safe areas by calling the function adjustViewFrameForSafeArea.

But it seems that when adjustViewFrameForSafeArea is called the
safe insets values are not updated which will lead to wrong
offset values in the frame for touches which will make the mouse
pointer inaccurate.

The iOS system makes calls to safeAreaInsetsDidChange whenever
the safe insets values are updated. Make sure to update the frame
on these calls to get correct touch offsets.

Changed paths:
    backends/platform/ios7/ios7_video.mm


diff --git a/backends/platform/ios7/ios7_video.mm b/backends/platform/ios7/ios7_video.mm
index 4153e305d2d..71e97f2248f 100644
--- a/backends/platform/ios7/ios7_video.mm
+++ b/backends/platform/ios7/ios7_video.mm
@@ -820,6 +820,13 @@ uint getSizeNextPOT(uint size) {
 #endif
 }
 
+#ifdef __IPHONE_11_0
+// This delegate method is called when the safe area of the view changes
+-(void)safeAreaInsetsDidChange {
+	[self adjustViewFrameForSafeArea];
+}
+#endif
+
 - (void)setViewTransformation {
 	// Scale the shake offset according to the overlay size. We need this to
 	// adjust the overlay mouse click coordinates when an offset is set.


Commit: a75d53a5ec056c41a4131f6a1b356c9904da73d6
    https://github.com/scummvm/scummvm/commit/a75d53a5ec056c41a4131f6a1b356c9904da73d6
Author: Lars Sundström (l.sundstrom at gmail.com)
Date: 2023-05-09T14:33:56+02:00

Commit Message:
DISTS: Add ITSAppUsesNonExemptEncryption property to Info.plist

Every time ScummVM iOS application is submitted to TestFlight or the
App Store, App Store Connect asks a question about the application's
export compliance. To not have to answer that question on every
upload, set the property ITSAppUsesNonExemptEncryption in Info.plist
to NO.

ScummVM uses third-party libraries that utilizes encryption, however
these are configured to use standard encryption algorithms or crypto
functionality within Apple’s operating system, thus fulfilling the
export compliance.

Changed paths:
    dists/ios7/Info.plist
    dists/ios7/Info.plist.in


diff --git a/dists/ios7/Info.plist b/dists/ios7/Info.plist
index cc6e2d5e31c..c76f8991dcf 100644
--- a/dists/ios7/Info.plist
+++ b/dists/ios7/Info.plist
@@ -33,6 +33,8 @@
 	</array>
 	<key>GCSupportsControllerUserInteraction</key>
 	<true/>
+	<key>ITSAppUsesNonExemptEncryption</key>
+	<false/>
 	<key>LSSupportsOpeningDocumentsInPlace</key>
 	<true/>
 	<key>UIApplicationSupportsIndirectInputEvents</key>
diff --git a/dists/ios7/Info.plist.in b/dists/ios7/Info.plist.in
index dde146420e5..03fd5c2799d 100644
--- a/dists/ios7/Info.plist.in
+++ b/dists/ios7/Info.plist.in
@@ -33,6 +33,8 @@
 	</array>
 	<key>GCSupportsControllerUserInteraction</key>
 	<true/>
+	<key>ITSAppUsesNonExemptEncryption</key>
+	<false/>
 	<key>LSSupportsOpeningDocumentsInPlace</key>
 	<true/>
 	<key>UIApplicationSupportsIndirectInputEvents</key>




More information about the Scummvm-git-logs mailing list