[Differential] [Commented On] D3159: Set wayland output scale
graesslin (Martin Gräßlin)
noreply at phabricator.kde.org
Mon Nov 7 14:15:52 UTC 2016
graesslin added inline comments.
INLINE COMMENTS
> davidedmundson wrote in scene_qpainter.cpp:311-313
> I'm harnassing QPainter's internal scaling.
>
> The old code:
>
> painter->drawImage(toplevel->clientPos(),
> pixmap->image(),
> src);
>
> internally is:
>
> painter->drawImage(QRect(toplevel->clientPos(), pixmap->image().size()),
> pixmap->image()
>
> My patch changes that to:
>
> painter->drawImage(QRect(toplevel->clientPos(), topLevel->clientSize()),
> pixmap->image(),
>
> So no matter how big or small pixmap->image is, it will be scaled to fit the client size.
ah so that's basically the "scale everything up" if output has a scale, but not yet the "surface has a scale of 2"?
REPOSITORY
rKWIN KWin
BRANCH
scaling
REVISION DETAIL
https://phabricator.kde.org/D3159
EMAIL PREFERENCES
https://phabricator.kde.org/settings/panel/emailpreferences/
To: davidedmundson, graesslin, #plasma
Cc: broulik, graesslin, plasma-devel, kwin, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20161107/2ca72f9c/attachment.html>
More information about the Plasma-devel
mailing list