aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <s@jaseg.de>2013-04-06 13:14:05 +0200
committerjaseg <s@jaseg.de>2013-04-06 13:14:05 +0200
commite05209b92a247ced88584ef7a395046398328752 (patch)
tree36b69d60a938489a431451172ec601e1c198cac8
parentdfa3f22662aa0602e92371528174e19d987083e2 (diff)
downloadpixelterm-e05209b92a247ced88584ef7a395046398328752.tar.gz
pixelterm-e05209b92a247ced88584ef7a395046398328752.tar.bz2
pixelterm-e05209b92a247ced88584ef7a395046398328752.zip
Fixed pixelterm rendering of parts where the lower pixel is transparent
-rwxr-xr-xpixelterm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pixelterm.py b/pixelterm.py
index 7882f61..74e003f 100755
--- a/pixelterm.py
+++ b/pixelterm.py
@@ -70,7 +70,7 @@ def termify_pixels(img):
#Da magicks: ▀█▄
c,cf = '▀','█'
te,be = fgescape,bgescape
- if coltop == (0,0,0,0) or coltop == bg or colbot == fg:
+ if coltop == (0,0,0,0) or ((coltop == bg or colbot == fg) and not colbot == (0,0,0,0)):
c,cf,te,be = '▄',' ',be,te
if colbot == coltop:
c,te,be = cf,te,te