Disable scintilla buffer draw on OS X (with Quartz backend)

This delagates font rendering to Quartz so it can be rendered
in 2x resolution on "retina" displays.
This commit is contained in:
Jiří Techet 2014-12-27 15:24:41 +01:00 committed by Jiří Techet
parent 5356c4549a
commit 3c01fae8d9

View File

@ -4779,6 +4779,11 @@ static ScintillaObject *create_new_sci(GeanyEditor *editor)
/* virtual space */
SSM(sci, SCI_SETVIRTUALSPACEOPTIONS, editor_prefs.show_virtual_space, 0);
#ifdef GDK_WINDOWING_QUARTZ
/* "retina" (HiDPI) display support on OS X - requires disabling buffered draw */
SSM(sci, SCI_SETBUFFEREDDRAW, 0, 0);
#endif
/* only connect signals if this is for the document notebook, not split window */
if (editor->sci == NULL)