plugins/screentransform: Use Output::pixelSize()
It's more accurate than `size * scale`.
This commit is contained in:
parent
b8f2f87672
commit
57ff600c98
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ void ScreenTransformEffect::addScreen(Output *screen)
|
|||
scene->prePaint(&delegate);
|
||||
|
||||
effects->makeOpenGLContextCurrent();
|
||||
if (auto texture = GLTexture::allocate(GL_RGBA8, screen->geometry().size() * screen->scale())) {
|
||||
if (auto texture = GLTexture::allocate(GL_RGBA8, screen->pixelSize())) {
|
||||
auto &state = m_states[screen];
|
||||
state.m_oldTransform = screen->transform();
|
||||
state.m_oldGeometry = screen->geometry();
|
||||
|
|
Loading…
Reference in a new issue