Lagrange [work/v1.8]

iOS: Fixing the build

=> 7a4f4db86de9ed610b9968f905f860d3b6272e61

diff --git a/src/fontpack.h b/src/fontpack.h
index 5d592822..d86de945 100644
--- a/src/fontpack.h
+++ b/src/fontpack.h
@@ -131,7 +131,8 @@ struct Impl_FontSpec {
 };
 
 iLocalDef int scaleType_FontSpec(enum iFontSize sizeId) {
-    return sizeId / contentRegular_FontSize;
+    iAssert(sizeId >= 0 && sizeId < max_FontSize);
+    return sizeId < contentRegular_FontSize ? 0 : 1;
 }
 
 /*----------------------------------------------------------------------------------------------*/
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index 42661f6b..821f8118 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -743,7 +743,7 @@ void init_SidebarWidget(iSidebarWidget *d, enum iSidebarSide side) {
 #if defined (iPlatformMobile)
     if (deviceType_App() == phone_AppDeviceType) {
         d->itemFonts[0] = uiLabelBig_FontId;
-        d->itemFonts[1] = defaultBigBold_FontId;
+        d->itemFonts[1] = uiLabelBigBold_FontId;
     }
     d->widthAsGaps = 73.0f;
 #else
diff --git a/src/ui/window.c b/src/ui/window.c
index 569ec919..83dae427 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -537,6 +537,7 @@ void init_MainWindow(iMainWindow *d, iRect rect) {
 #elif defined (iPlatformAppleMobile)
     SDL_SetHint(SDL_HINT_RENDER_DRIVER, "metal");
     flags |= SDL_WINDOW_METAL;
+    d->base.isExposed = iTrue;
 #else
     if (!forceSoftwareRender_App()) {
         flags |= SDL_WINDOW_OPENGL;
@@ -615,7 +616,11 @@ void init_MainWindow(iMainWindow *d, iRect rect) {
         SDL_EventState(SDL_SYSWMEVENT, SDL_TRUE);
     }
 #endif
+#if defined (iPlatformDesktop)
     SDL_HideWindow(d->base.win);
+#else
+    SDL_ShowWindow(d->base.win);
+#endif
 }
 
 void deinit_MainWindow(iMainWindow *d) {
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.8/cdiff/7a4f4db86de9ed610b9968f905f860d3b6272e61
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
25.912163 milliseconds
Gemini-to-HTML Time
0.186935 milliseconds

This content has been proxied by September (ba2dc).