Commit 9a8b6f73 authored by Méven Car's avatar Méven Car
Browse files

Make ScreenShotEffect::screenshotScreen return native screen sized images

Aka not-downscaled images.
CCBUG: 409762
parent eb00a566
...@@ -421,6 +421,7 @@ void ScreenShotEffect::sendReplyImage(const QImage &img) ...@@ -421,6 +421,7 @@ void ScreenShotEffect::sendReplyImage(const QImage &img)
m_windowMode = WindowMode::NoCapture; m_windowMode = WindowMode::NoCapture;
m_cacheOutputsImages.clear(); m_cacheOutputsImages.clear();
m_cachedOutputGeometry = QRect(); m_cachedOutputGeometry = QRect();
m_nativeSize = false;
} }
QString ScreenShotEffect::saveTempImage(const QImage &img) QString ScreenShotEffect::saveTempImage(const QImage &img)
...@@ -619,6 +620,7 @@ QString ScreenShotEffect::screenshotScreen(int screen, bool captureCursor) ...@@ -619,6 +620,7 @@ QString ScreenShotEffect::screenshotScreen(int screen, bool captureCursor)
return QString(); return QString();
} }
m_captureCursor = captureCursor; m_captureCursor = captureCursor;
m_nativeSize = true;
m_replyMessage = message(); m_replyMessage = message();
setDelayedReply(true); setDelayedReply(true);
effects->addRepaint(m_scheduledGeometry); effects->addRepaint(m_scheduledGeometry);
......
Markdown is supported
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