[suggested-refactoring] Call setupAntialiasing() before getting fontRenderContext

May help for IDEA-327297

GitOrigin-RevId: 05f20546d71e54b9a6f7b1bb51387769b141afab
This commit is contained in:
Tagir Valeev
2023-09-27 16:12:20 +00:00
committed by intellij-monorepo-bot
parent 9b47be425b
commit 2586b12f70
@@ -93,14 +93,11 @@ class SignatureChangePresentation(
}
fun paint(g: Graphics2D, bounds: Rectangle) {
UISettings.setupAntialiasing(g)
renderAll(g, g.fontRenderContext, bounds)
}
private fun renderAll(g: Graphics2D?, fontRenderContext: FontRenderContext, bounds: Rectangle): ConnectionRouter {
if (g != null) {
UISettings.setupAntialiasing(g)
}
val lineHeight = lineHeight(fontRenderContext)
val oldSignatureSize = signatureDimensions(model.oldSignature, fontRenderContext)
val newSignatureSize = signatureDimensions(model.newSignature, fontRenderContext)