From e05209b92a247ced88584ef7a395046398328752 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 6 Apr 2013 13:14:05 +0200 Subject: Fixed pixelterm rendering of parts where the lower pixel is transparent --- pixelterm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit