From 2366f79318014f6ec569ea61f78b53a3b80efa3d Mon Sep 17 00:00:00 2001
From: liuxinhao <liuxinhao@kylinsec.com.cn>
Date: Tue, 25 Apr 2023 10:45:47 +0800
Subject: [PATCH 1/2] fix(greeter): Background anti-aliasing
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

- 背景抗锯齿
---
 src/lightdm-greeter/background.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lightdm-greeter/background.cpp b/src/lightdm-greeter/background.cpp
index c9e6394..0b6e8f3 100644
--- a/src/lightdm-greeter/background.cpp
+++ b/src/lightdm-greeter/background.cpp
@@ -122,6 +122,7 @@ void Background::resizeEvent(QResizeEvent *event)
 void Background::paintEvent(QPaintEvent *event)
 {
     QPainter painter(this);
+    painter.setRenderHint(QPainter::Antialiasing);
     if (!m_scaledBackground.isNull())
     {
         painter.drawPixmap(this->rect(), m_scaledBackground, m_scaledBackground.rect());
-- 
2.33.0

