Skip to content

Commit a107395

Browse files
committed
Logo (Chafa): fix blurry result when specifying both width and height
Who knows why it was coded like that Fix #757
1 parent 8a9fe22 commit a107395

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
Bugfixes:
44
* Don't detect `SessionLeader` as terminal, actually (Terminal, Linux)
5+
* Fix blurry chafa result when specifying both width and height (#757, Logo)
56

67
Features:
78
* Support new MacBook Air (Host, macOS)

src/logo/image/image.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -768,10 +768,8 @@ static bool printImageIfExistsSlowPath(FFLogoType type, bool printError)
768768
requestData.characterPixelWidth = 1;
769769
requestData.characterPixelHeight = 1;
770770

771-
if(
772-
(type != FF_LOGO_TYPE_IMAGE_CHAFA || instance.config.logo.width == 0 || instance.config.logo.height == 0) &&
773-
!getCharacterPixelDimensions(&requestData)
774-
) {
771+
if(!getCharacterPixelDimensions(&requestData))
772+
{
775773
if(printError)
776774
fputs("Logo: getCharacterPixelDimensions() failed", stderr);
777775
return false;

0 commit comments

Comments
 (0)