Commit e6f074b8 authored by Matan Ziv-Av's avatar Matan Ziv-Av Committed by Tomaz Canabrava
Browse files

Fix rendering of U+2590 and U+2595

QRect::MoveLeft is the wrong operation. We really want QRect:setX,
in order to leave the right edge of the rectangle in the same position.
parent 26936151
Pipeline #199181 passed with stage
in 2 minutes and 22 seconds
......@@ -647,19 +647,17 @@ static inline bool drawBlockCharacter(QPainter &paint, int x, int y, int w, int
paint.fillRect(rect, color);
return true;
case 0x90: // Right half block
rect.moveLeft(center.x());
rect.setX(center.x());
paint.fillRect(rect, color);
return true;
case 0x94: // Top one eighth block
rect.setHeight(h / 8.0);
paint.fillRect(rect, color);
return true;
case 0x95: { // Right one eighth block
const qreal width = 7 * w / 8.0;
rect.moveLeft(x + width);
case 0x95: // Right one eighth block
rect.setX(x + 7 * w / 8.0);
paint.fillRect(rect, color);
return true;
}
case 0x91: // Light shade
paint.fillRect(rect, lightShade);
return true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment