=> 80e59939ece01707de32b4f7ee6c54a35e773c9e
[1mdiff --git a/res/about/ios-version.gmi b/res/about/ios-version.gmi[m [1mindex d04a2a86..a42130b0 100644[m [1m--- a/res/about/ios-version.gmi[m [1m+++ b/res/about/ios-version.gmi[m [36m@@ -10,6 +10,7 @@[m * Added "Vibrant Light" color theme.[m * Improved readability of "Colorful Light" headings.[m * Preformatted blocks no longer switch to a smaller font to fit to the page.[m [32m+[m[32m* (iPad) Fixed incorrect display scaling when launching the app in Slide Over or Split View mode.[m * Fixed horizontal scrolling issues with preformatted blocks: only scroll if needed, allow scrolling anywhere on the block and not just on non-empty text lines, and when scrolling disallow swipe navigation over the area.[m * Fixed visual artifacts around and next to preformatted blocks (e.g., streaking).[m * Fixed potential crash after (un)folding a preformatted block.[m [1mdiff --git a/src/ios.h b/src/ios.h[m [1mindex 768733fc..f501d504 100644[m [1m--- a/src/ios.h[m [1m+++ b/src/ios.h[m [36m@@ -43,6 +43,7 @@[m [mvoid openFileActivityView_iOS(const iString *path);[m iBool isPhone_iOS (void);[m void safeAreaInsets_iOS (float *left, float *top, float *right, float *bottom);[m int displayRefreshRate_iOS (void);[m [32m+[m[32mfloat displayScale_iOS (const iWindow *window);[m [m /*----------------------------------------------------------------------------------------------*/[m [m [1mdiff --git a/src/ios.m b/src/ios.m[m [1mindex a463230a..08c13660 100644[m [1m--- a/src/ios.m[m [1m+++ b/src/ios.m[m [36m@@ -43,7 +43,7 @@[m [mSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */[m static iBool isSystemDarkMode_ = iFalse;[m static iBool isPhone_ = iFalse;[m [m [31m-static UIWindow *uiWindow_(iWindow *window) {[m [32m+[m[32mstatic UIWindow *uiWindow_(const iWindow *window) {[m SDL_SysWMinfo wm;[m SDL_VERSION(&wm.version);[m if (SDL_GetWindowWMInfo(window->win, &wm)) {[m [36m@@ -540,6 +540,10 @@[m [mint displayRefreshRate_iOS(void) {[m return (int) uiWindow_(get_Window()).screen.maximumFramesPerSecond;[m }[m [m [32m+[m[32mfloat displayScale_iOS(const iWindow *window) {[m [32m+[m[32m return uiWindow_(window).screen.scale;[m [32m+[m[32m}[m [32m+[m void setupWindow_iOS(iWindow *window) {[m UIViewController *ctl = viewController_(window);[m isSystemDarkMode_ = isDarkMode_(window);[m [1mdiff --git a/src/ui/window.c b/src/ui/window.c[m [1mindex 2b4e3835..9c462c0c 100644[m [1m--- a/src/ui/window.c[m [1m+++ b/src/ui/window.c[m [36m@@ -376,10 +376,14 @@[m [mvoid drawWhileResizing_MainWindow(iMainWindow *d, int w, int h) {[m }[m [m static float pixelRatio_Window_(const iWindow *d) {[m [32m+[m[32m#if defined (iPlatformAppleMobile)[m [32m+[m[32m return displayScale_iOS(d);[m [32m+[m[32m#else[m int dx, x;[m SDL_GetRendererOutputSize(d->render, &dx, NULL);[m SDL_GetWindowSize(d->win, &x, NULL);[m return (float) dx / (float) x;[m [32m+[m[32m#endif[m }[m [m #if defined (iPlatformApple)[m
text/gemini; charset=utf-8
This content has been proxied by September (ba2dc).