Skip to content

Commit 98a7da6

Browse files
committed
Minor fixes
1 parent faba0b4 commit 98a7da6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

editor/window.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,6 @@ func (w *Window) paint(event *gui.QPaintEvent) {
306306
return
307307
}
308308

309-
// Set RenderHint
310-
p.SetRenderHint(gui.QPainter__SmoothPixmapTransform, true)
311-
312309
// Set font
313310
font := w.getFont()
314311

@@ -2640,6 +2637,9 @@ func (w *Window) drawTextInPosWithCache(p *gui.QPainter, x, y int, text string,
26402637
// Scale specific characters to full line height
26412638
yOffset := 0
26422639
if scaled {
2640+
// Set RenderHint
2641+
p.SetRenderHint(gui.QPainter__SmoothPixmapTransform, true)
2642+
26432643
font := w.getFont()
26442644
ratio := (float64(font.lineHeight) / float64(font.height))
26452645
if ratio != 1.0 {

0 commit comments

Comments
 (0)