Explorar o código

"Fixes" asciiquarium

Seems like some terminal applications imply "terminal background" when setting background to "black"
devmil %!s(int64=4) %!d(string=hai) anos
pai
achega
191f380598
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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;