diff options
Diffstat (limited to 'src/display/sp-canvas.h')
| -rw-r--r-- | src/display/sp-canvas.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/display/sp-canvas.h b/src/display/sp-canvas.h index 92a50da11..d30e0a485 100644 --- a/src/display/sp-canvas.h +++ b/src/display/sp-canvas.h @@ -55,6 +55,7 @@ struct SPCanvasBuf { unsigned char *buf; int buf_rowstride; + int device_scale; // For high DPI monitors. bool is_empty; }; @@ -177,6 +178,8 @@ public: int _x0; ///< World coordinate of the leftmost pixels of window int _y0; ///< World coordinate of the topmost pixels of window + int _device_scale; ///< Scale for high DPI montiors + /// Image surface storing the contents of the widget cairo_surface_t *_backing_store; #if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 12, 0) |
