plugins/screentransform: Use Output::pixelSize()

It's more accurate than `size * scale`.
This commit is contained in:
Vlad Zahorodnii 2023-11-21 19:29:45 +02:00
parent b8f2f87672
commit 57ff600c98

View file

@ -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();