D3498: Add scaling to DRM backend

Roman Gilg noreply at phabricator.kde.org
Sat Mar 25 16:55:40 UTC 2017


subdiff requested changes to this revision.
subdiff added inline comments.
This revision now requires changes to proceed.

INLINE COMMENTS

> scene_qpainter_drm_backend.cpp:67
>      auto initBuffer = [&o, output, this] (int index) {
> -        o.buffer[index] = m_backend->createBuffer(output->size());
> +        o.buffer[index] = m_backend->createBuffer(output->size() * output->scale());
>          o.buffer[index]->map();

Divding above through scale and then multiplying again here and in blank() could lead to rounding errors.

REPOSITORY
  R108 KWin

REVISION DETAIL
  https://phabricator.kde.org/D3498

To: davidedmundson, #plasma, graesslin, subdiff
Cc: subdiff, #kwin, plasma-devel, kwin, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170325/fa74ab11/attachment.html>


More information about the Plasma-devel mailing list