mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-02-10 12:33:59 +00:00
screengrabber: fix devicePixelRatio detection (#277)
This commit is contained in:
@@ -85,7 +85,9 @@ QPixmap ScreenGrabber::grabEntireDesktop(bool &ok) {
|
||||
geometry.width(),
|
||||
geometry.height())
|
||||
);
|
||||
p.setDevicePixelRatio(QApplication::desktop()->devicePixelRatio());
|
||||
auto screenNumber = QApplication::desktop()->screenNumber();
|
||||
QScreen *screen = QApplication::screens()[screenNumber];
|
||||
p.setDevicePixelRatio(screen->devicePixelRatio());
|
||||
return p;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user