Przeglądaj źródła

"Fixes" asciiquarium

Seems like some terminal applications imply "terminal background" when setting background to "black"
devmil 4 lat temu
rodzic
commit
191f380598
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      lib/frontend/terminal_view.dart

+ 5 - 0
lib/frontend/terminal_view.dart

@@ -374,6 +374,11 @@ class TerminalPainter extends CustomPainter {
           continue;
         }
 
+        // when a program reports black as background then it "really" means transparent
+        if (effectBgColor == 0xFF000000) {
+          continue;
+        }
+
         // final cellFlags = line.cellGetFlags(i);
         // final cell = line.getCell(i);
         // final attr = cell.attr;