diff layer/PaintAssistant.h @ 1401:28075cc658c9

Scale pen for retina display on macOS as well as for hidpi display elsewhere
author Chris Cannam
date Thu, 15 Nov 2018 14:04:32 +0000
parents cca66ce390e0
children
line wrap: on
line diff
--- a/layer/PaintAssistant.h	Thu Nov 15 13:06:38 2018 +0000
+++ b/layer/PaintAssistant.h	Thu Nov 15 14:04:32 2018 +0000
@@ -47,27 +47,6 @@
     static void drawVisibleText(const LayerGeometryProvider *,
                                 QPainter &p, int x, int y,
                                 QString text, TextStyle style);
-
-    /**
-     * Scale up a size in pixels for a hi-dpi display without pixel
-     * doubling. This is like ViewManager::scalePixelSize, but taking
-     * and returning floating-point values rather than integer
-     * pixels. It is also a little more conservative - it never
-     * shrinks the size, it can only increase or leave it unchanged.
-     */
-    static double scaleSize(double size);
-
-    /**
-     * Scale up pen width for a hi-dpi display without pixel doubling.
-     * This is like scaleSize except that it also scales the
-     * zero-width case.
-     */
-    static double scalePenWidth(double width);
-
-    /**
-     * Apply scalePenWidth to a pen.
-     */
-    static QPen scalePen(QPen pen);
 };
 
 #endif