=> 5845ae8e445afdabcf648f9f66544cfcab175f89
[1mdiff --git a/src/app.c b/src/app.c[m [1mindex 92b1d641..c663e02b 100644[m [1m--- a/src/app.c[m [1m+++ b/src/app.c[m [36m@@ -544,7 +544,7 @@[m [mstatic iRect initialWindowRect_App_(const iApp *d, size_t windowIndex) {[m /* Must scale by UI scaling factor. */[m mulfv_I2(&rect.size, desktopDPI_Win32());[m #endif[m [31m-#if defined (iPlatformLinux) && !defined (iPlatformAndroid)[m [32m+[m[32m#if defined (iPlatformLinux) && !defined (iPlatformAndroid) && !defined (iPlatformTerminal)[m /* Scale by the primary (?) monitor DPI. */[m if (isRunningUnderWindowSystem_App()) {[m float vdpi;[m [36m@@ -891,7 +891,7 @@[m [mstatic iBool hasCommandLineOpenableScheme_(const iRangecc uri) {[m }[m [m static void init_App_(iApp *d, int argc, char **argv) {[m [31m-#if defined (iPlatformLinux) && !defined (iPlatformAndroid)[m [32m+[m[32m#if defined (iPlatformLinux) && !defined (iPlatformAndroid) && !defined (iPlatformTerminal)[m d->isRunningUnderWindowSystem = !iCmpStr(SDL_GetCurrentVideoDriver(), "x11") ||[m !iCmpStr(SDL_GetCurrentVideoDriver(), "wayland");[m #else[m [1mdiff --git a/src/ui/window.c b/src/ui/window.c[m [1mindex 337eaba5..fa1d01ab 100644[m [1m--- a/src/ui/window.c[m [1m+++ b/src/ui/window.c[m [36m@@ -332,7 +332,7 @@[m [mstatic float displayScale_Window_(const iWindow *d) {[m LAGRANGE_OVERRIDE_DPI with the empty string. */[m setenv("LAGRANGE_OVERRIDE_DPI", "", 1);[m }[m [31m-#if defined (iPlatformApple)[m [32m+[m[32m#if defined (iPlatformApple) || defined (iPlatformTerminal)[m iUnused(d);[m /* Apple UI sizes are fixed and only scaled by pixel ratio. */[m /* TODO: iOS text size setting? */[m [36m@@ -656,7 +656,7 @@[m [mvoid init_MainWindow(iMainWindow *d, iRect rect) {[m useExecutableIconResource_SDLWindow(d->base.win);[m enableDarkMode_SDLWindow(d->base.win);[m #endif[m [31m-#if defined (iPlatformLinux)[m [32m+[m[32m#if defined (iPlatformLinux) && !defined (iPlatformTerminal)[m SDL_SetWindowMinimumSize(d->base.win, minSize.x * d->base.pixelRatio, minSize.y * d->base.pixelRatio);[m /* Load the window icon. */ {[m SDL_Surface *surf = loadImage_(&imageLagrange64_Resources, 0);[m [36m@@ -885,7 +885,7 @@[m [mstatic void savePlace_MainWindow_(iAny *mainWindow) {[m SDL_GetWindowPosition(d->base.win, &newPos.x, &newPos.y);[m d->place.normalRect.pos = newPos;[m iInt2 border = zero_I2();[m [31m-#if !defined(iPlatformApple)[m [32m+[m[32m#if !defined(iPlatformApple) && !defined (iPlatformTerminal)[m SDL_GetWindowBordersSize(d->base.win, &border.y, &border.x, NULL, NULL);[m iAssert(~SDL_GetWindowFlags(d->base.win) & SDL_WINDOW_MAXIMIZED);[m #endif[m
text/gemini; charset=utf-8
This content has been proxied by September (ba2dc).