From 3c01fae8d95f51340e16247f51d0e654500d43f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Techet?= Date: Sat, 27 Dec 2014 15:24:41 +0100 Subject: [PATCH] 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. --- src/editor.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/editor.c b/src/editor.c index 73b85cda..b7c646cc 100644 --- a/src/editor.c +++ b/src/editor.c @@ -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)