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
@ -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…
Reference in New Issue
Block a user