[geany/geany] 064a28: Enable buffered draw on newer Gtk versions on OS X

Jiří Techet git-noreply at xxxxx
Fri Jun 10 23:10:31 UTC 2016


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Tue, 08 Mar 2016 12:20:45 UTC
Commit:      064a2897054a685bf40f2f4fd22e99edebf88007
             https://github.com/geany/geany/commit/064a2897054a685bf40f2f4fd22e99edebf88007

Log Message:
-----------
Enable buffered draw on newer Gtk versions on OS X

Buffered draw seems to be faster and with newer Gtk versions
works correctly on HiDPI screens.

I haven't checked precisely since which Gtk version this works
(didn't work in 3.10, might have been fixed in a later version)
but it isn't as important because even with 3.16 the build
is highly unstable because of Gtk issues (Gtk 3.18 seems to
be promising though).


Modified Paths:
--------------
    src/editor.c

Modified: src/editor.c
5 lines changed, 4 insertions(+), 1 deletions(-)
===================================================================
@@ -4977,8 +4977,11 @@ static ScintillaObject *create_new_sci(GeanyEditor *editor)
 	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 */
+# if ! GTK_CHECK_VERSION(3,16,0)
+	/* "retina" (HiDPI) display support on OS X - requires disabling buffered draw
+	 * on older GTK versions */
 	SSM(sci, SCI_SETBUFFEREDDRAW, 0, 0);
+# endif
 #endif
 
 	/* only connect signals if this is for the document notebook, not split window */



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list