Height and width in Qt grabber corrected

This commit is contained in:
Paulchen Panther 2021-02-19 19:59:04 +01:00
parent 3a2a101658
commit 448af2bd8e

View File

@ -115,15 +115,15 @@ int QtGrabber::updateScreenDimensions(bool force)
return -1; return -1;
const QRect& geo = _screen->geometry(); const QRect& geo = _screen->geometry();
if (!force && _width == geo.right() && _height == geo.bottom()) if (!force && _width == geo.width() && _height == geo.height())
{ {
// No update required // No update required
return 0; return 0;
} }
Info(_log, "Update of screen resolution: [%dx%d] to [%dx%d]", _width, _height, geo.right(), geo.bottom()); Info(_log, "Update of screen resolution: [%dx%d] to [%dx%d]", _width, _height, geo.width(), geo.height());
_width = geo.right() - geo.left(); _width = geo.width();
_height = geo.bottom() - geo.top(); _height = geo.height();
int width=0, height=0; int width=0, height=0;