mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 05:05:43 +01:00
Fix widget retina scaling (#9243)
For normal cairo-widgets ardour should not use image surfaces on macOS, because that bypasses retina scaling. In theory explicit upsampling could be performed (compere to openGL/cairo), but for the case at hand that is overkill and inconvenient. Performance critical widgets that render periodically can enable openGL backing. Casual widgets (buttons with text, knobs, sliders etc) can be rendered directly without any significant performance penalty.
This commit is contained in:
parent
9df3058cd8
commit
cba8fd090f
1 changed files with 3 additions and 1 deletions
|
|
@ -63,7 +63,9 @@ CairoWidget::CairoWidget ()
|
|||
, _current_parent (0)
|
||||
, _canvas_widget (false)
|
||||
, _nsglview (0)
|
||||
#ifdef USE_CAIRO_IMAGE_SURFACE
|
||||
#ifdef __APPLE__
|
||||
, _use_image_surface (false)
|
||||
#elif defined USE_CAIRO_IMAGE_SURFACE
|
||||
, _use_image_surface (true)
|
||||
#else
|
||||
, _use_image_surface (NULL != getenv("ARDOUR_IMAGE_SURFACE"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue