mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 06:57:51 +00:00
Qt5: constrain the window buffer refresh area
With this patch, the information about the changed window area is taken into account when refreshing the Nitpicker buffer. Fixes #1132.
This commit is contained in:
parent
17c22b2ac9
commit
023afebba1
@ -491,7 +491,7 @@ unsigned char *QNitpickerPlatformWindow::framebuffer()
|
|||||||
void QNitpickerPlatformWindow::refresh(int x, int y, int w, int h)
|
void QNitpickerPlatformWindow::refresh(int x, int y, int w, int h)
|
||||||
{
|
{
|
||||||
if (qnpw_verbose)
|
if (qnpw_verbose)
|
||||||
qDebug() << "QNitpickerPlatformWindow::refresh()";
|
qDebug("QNitpickerPlatformWindow::refresh(%d, %d, %d, %d)", x, y, w, h);
|
||||||
|
|
||||||
_framebuffer_session.refresh(x, y, w, h);
|
_framebuffer_session.refresh(x, y, w, h);
|
||||||
}
|
}
|
||||||
|
@ -74,10 +74,16 @@ void QNitpickerWindowSurface::flush(QWindow *window, const QRegion ®ion, cons
|
|||||||
Q_UNUSED(offset);
|
Q_UNUSED(offset);
|
||||||
|
|
||||||
if (verbose)
|
if (verbose)
|
||||||
qDebug() << "QNitpickerWindowSurface::flush()";
|
qDebug() << "QNitpickerWindowSurface::flush("
|
||||||
|
<< "window =" << window
|
||||||
|
<< ", region =" << region
|
||||||
|
<< ", offset =" << offset
|
||||||
|
<< ")";
|
||||||
|
|
||||||
QRect geo = _platform_window->geometry();
|
_platform_window->refresh(region.boundingRect().x() + offset.x(),
|
||||||
_platform_window->refresh(0, 0, geo.width(), geo.height());
|
region.boundingRect().y() + offset.y(),
|
||||||
|
region.boundingRect().width(),
|
||||||
|
region.boundingRect().height());
|
||||||
}
|
}
|
||||||
|
|
||||||
void QNitpickerWindowSurface::resize(const QSize &size, const QRegion &staticContents)
|
void QNitpickerWindowSurface::resize(const QSize &size, const QRegion &staticContents)
|
||||||
|
Loading…
Reference in New Issue
Block a user