[okular] [Bug 384143] HiPDI: freehand line in presentation mode is blocky

Oliver Sander bugzilla_noreply at kde.org
Sat Jun 22 20:55:40 BST 2019


https://bugs.kde.org/show_bug.cgi?id=384143

Oliver Sander <oliver.sander at tu-dresden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|CONFIRMED                   |RESOLVED
      Latest Commit|                            |https://invent.kde.org/kde/
                   |                            |okular/commit/19f22098e67db
                   |                            |a5d06df170b32b9074b17b1ae6e

--- Comment #2 from Oliver Sander <oliver.sander at tu-dresden.de> ---
Git commit 19f22098e67dba5d06df170b32b9074b17b1ae6e by Oliver Sander.
Committed on 22/06/2019 at 19:55.
Pushed by sander into branch 'master'.

Mind the devicePixelRatio when drawing on-screen in presentation mode

Previously, when using a screen scaling factor larger than 1, the
drawings by mouse or stylus in presentation mode were slightly blocky.
The underlying cause was
a) a few integer types used for non-integer coordinates
b) the intermediate use of a QPixmap without the correct
   devicePixelRatio

Additionally, this patch uses a QPainterPath to draw the path,
rather than a sequence of individual lines.  This improves
the line quality a tiny bit, because the lines are properly
joined.

Differential Revision: https://phabricator.kde.org/D21836

M  +4    -5    ui/annotationtools.cpp
M  +11   -5    ui/presentationwidget.cpp

https://invent.kde.org/kde/okular/commit/19f22098e67dba5d06df170b32b9074b17b1ae6e

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list