Mercurial > octave
diff libgui/src/m-editor/octave-qscintilla.cc @ 25523:5daeb4049088 stable
gui: fix editor rendering on some displays, disable QScintilla buffered drawing
* octave-qscintilla.cc (octave_qscintilla::octave_qscintilla): Disable buffered
bitmap drawing mode on all systems. Has no effect on some systems, improves
appearance on some GNU/Linux systems with non-integer HiDPI scaling.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Wed, 25 Apr 2018 09:51:59 -0700 |
parents | 078b795c5219 |
children | d7aafcb1dc1a 052a0d5dfd2c |
line wrap: on
line diff
--- a/libgui/src/m-editor/octave-qscintilla.cc Fri Jun 29 12:37:42 2018 -0400 +++ b/libgui/src/m-editor/octave-qscintilla.cc Wed Apr 25 09:51:59 2018 -0700 @@ -117,6 +117,9 @@ // clear scintilla edit shortcuts that are handled by the editor QsciCommandSet *cmd_set = standardCommands (); + // Disable buffered drawing on all systems + SendScintilla (SCI_SETBUFFEREDDRAW, false); + #if defined (HAVE_QSCI_VERSION_2_6_0) // find () was added in QScintilla 2.6 cmd_set->find (QsciCommand::SelectionCopy)->setKey (0);