diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-08-30 13:17:26 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-08-30 13:17:26 +0200 |
| commit | 32f4059b37cde3def606127d843f143380bc2048 (patch) | |
| tree | 561f5a0f385932dd46d50ef2d94b9df75afec417 /src/protocols/Screencopy.cpp | |
| parent | 84c4a14dadf8d28f57068d39cfec2612c15becd1 (diff) | |
screencopy: fix region sharing
translate before scaling if we are not dividing the coords
Diffstat (limited to 'src/protocols/Screencopy.cpp')
| -rw-r--r-- | src/protocols/Screencopy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp index 11d63612..40eb97f3 100644 --- a/src/protocols/Screencopy.cpp +++ b/src/protocols/Screencopy.cpp @@ -441,8 +441,8 @@ bool CScreencopyProtocolManager::copyFrameDmabuf(SScreencopyFrame* frame) { float glMatrix[9]; wlr_matrix_identity(glMatrix); - wlr_matrix_scale(glMatrix, frame->pMonitor->vecPixelSize.x, frame->pMonitor->vecPixelSize.y); wlr_matrix_translate(glMatrix, -frame->box.x, -frame->box.y); + wlr_matrix_scale(glMatrix, frame->pMonitor->vecPixelSize.x, frame->pMonitor->vecPixelSize.y); if (!wlr_renderer_begin_with_buffer(g_pCompositor->m_sWLRRenderer, frame->buffer)) { wlr_texture_destroy(sourceTex); |
