D3498: Add scaling to DRM backend

Roman Gilg noreply at phabricator.kde.org
Fri Mar 31 01:48:27 UTC 2017


subdiff added inline comments.

INLINE COMMENTS

> drm_output.cpp:104
>  {
> -    return QRect(m_globalPos, size());
> +    return QRect(m_globalPos, pixelSize() / scale());
>  }

Instead of dividing on every call, declare new private variable `QSize m_scaledSize = pixelSize() / scale()`, and update its value only when m_mode or the scale value is changed.

REPOSITORY
  R108 KWin

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

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


More information about the Plasma-devel mailing list