wasm: use correct coordinates when blitting
The target position is the position on the canvas, not the global position on the page. Task-number: QTBUG-75463 Change-Id: I4ea2c9afacd2065fa975f6fa2e6a93d98f637854 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
This commit is contained in:
parent
6d7c7a5dda
commit
00de44701d
@ -255,8 +255,9 @@ void QWasmCompositor::drawWindowContent(QOpenGLTextureBlitter *blitter, QWasmScr
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
QOpenGLTexture const *texture = backingStore->getUpdatedTexture();
|
QOpenGLTexture const *texture = backingStore->getUpdatedTexture();
|
||||||
|
QPoint windowCanvasPosition = window->geometry().topLeft() - screen->geometry().topLeft();
|
||||||
blit(blitter, screen, texture, window->geometry());
|
QRect windowCanvasGeometry = QRect(windowCanvasPosition, window->geometry().size());
|
||||||
|
blit(blitter, screen, texture, windowCanvasGeometry);
|
||||||
}
|
}
|
||||||
|
|
||||||
QPalette QWasmCompositor::makeWindowPalette()
|
QPalette QWasmCompositor::makeWindowPalette()
|
||||||
|
Loading…
Reference in New Issue
Block a user