=> e8295f0065e8ecddab2e291e420098ac7981e0a9
[1mdiff --git a/src/ui/keys.c b/src/ui/keys.c[m [1mindex 065325a7..0e0621d4 100644[m [1m--- a/src/ui/keys.c[m [1m+++ b/src/ui/keys.c[m [36m@@ -506,10 +506,14 @@[m [mconst iPtrArray *list_Keys(void) {[m }[m [m iBool isDown_Keys(const iBinding *binding) {[m [32m+[m[32m#if defined (iPlatformTerminal)[m [32m+[m[32m return iFalse;[m [32m+[m[32m#else[m int numKeys = 0;[m const uint8_t *keys = SDL_GetKeyboardState(&numKeys);[m const int scancode = SDL_GetScancodeFromKey(binding->key);[m const int scancode2 = (scancode == SDL_SCANCODE_RALT ? SDL_SCANCODE_LALT :[m scancode == SDL_SCANCODE_LALT ? SDL_SCANCODE_RALT : scancode);[m return (scancode < numKeys && keys[scancode]) || (scancode2 < numKeys && keys[scancode2]);[m [32m+[m[32m#endif[m }[m [1mdiff --git a/src/ui/text_simple.c b/src/ui/text_simple.c[m [1mindex a975630e..06b2cb6b 100644[m [1m--- a/src/ui/text_simple.c[m [1m+++ b/src/ui/text_simple.c[m [36m@@ -63,7 +63,7 @@[m [miLocalDef iBool isMeasuring_(enum iRunMode mode) {[m }[m [m static void runSimple_Font_(iFont *d, const iRunArgs *args) {[m [31m- /* This function shapes text using a simplified, incomplete algorithm. It works for English [m [32m+[m[32m /* This function shapes text using a simplified, incomplete algorithm. It works for English[m and other non-complex LTR scripts. Composed glyphs are not supported (must rely on text[m being in a pre-composed form). This algorithm is used if HarfBuzz is not available. */[m const iInt2 orig = args->pos;[m [36m@@ -146,7 +146,11 @@[m [mstatic void runSimple_Font_(iFont *d, const iRunArgs *args) {[m iColor clr = get_Color(args->color);[m ansiColors_Color(capturedRange_RegExpMatch(&m, 1),[m current_Text()->baseFgColorId,[m [31m- none_ColorId, &clr, NULL);[m [32m+[m[32m none_ColorId,[m [32m+[m[32m iFalse,[m [32m+[m[32m &clr,[m [32m+[m[32m NULL,[m [32m+[m[32m NULL);[m #if defined (LAGRANGE_ENABLE_STB_TRUETYPE)[m SDL_SetTextureColorMod(cache, clr.r, clr.g, clr.b);[m #endif[m [1mdiff --git a/src/ui/util.c b/src/ui/util.c[m [1mindex a31a629d..29ef6093 100644[m [1m--- a/src/ui/util.c[m [1m+++ b/src/ui/util.c[m [36m@@ -1531,10 +1531,12 @@[m [mvoid openMenuAnchorFlags_Widget(iWidget *d, iRect windowAnchorRect, int menuOpen[m }[m }[m iWindow *win = newPopup_Window(menuPos, d); /* window takes the widget */[m [32m+[m[32m#if !defined (iPlatformTerminal)[m if (isFromMenuBar && menuPos.y + menuSize.y > bottom_Rect(displayRect)) {[m const int maxMenuHeight = bottom_Rect(displayRect) - menuPos.y;[m SDL_SetWindowMaximumSize(win->win, displayRect.size.x, maxMenuHeight);[m }[m [32m+[m[32m#endif[m setCurrent_Window(win);[m SDL_SetWindowTitle(win->win, "Menu");[m arrange_Widget(d);[m [1mdiff --git a/src/ui/window.c b/src/ui/window.c[m [1mindex 769d089c..a14c02db 100644[m [1m--- a/src/ui/window.c[m [1m+++ b/src/ui/window.c[m [36m@@ -783,7 +783,7 @@[m [mvoid init_MainWindow(iMainWindow *d, iRect rect) {[m SDL_Surface *surf = loadImage_(&imageLogo_Resources, 0);[m d->logo = SDL_CreateTextureFromSurface(d->base.render, surf);[m SDL_SetTextureBlendMode(d->logo, SDL_BLENDMODE_BLEND);[m [31m-#if SDL_VERSION_ATLEAST(2, 0, 12)[m [32m+[m[32m#if SDL_VERSION_ATLEAST(2, 0, 12) && !defined (iPlatformTerminal)[m SDL_SetTextureScaleMode(d->logo, SDL_ScaleModeBest);[m #endif[m free(surf->pixels);[m
text/gemini; charset=utf-8
This content has been proxied by September (ba2dc).