Hello, GLScene flickers in GTK2 and the following patch fixes this
Index: lcl/interfaces/gtk/gtkwinapiwindow.pp =================================================================== --- lcl/interfaces/gtk/gtkwinapiwindow.pp (revision 17040) +++ lcl/interfaces/gtk/gtkwinapiwindow.pp (working copy) @@ -484,7 +484,7 @@ //@ gtk_widget_set_flags(AWidget, GTK_REALIZED); {$IFNDEF GTK1} - gtk_widget_set_double_buffered(AWidget, True); // True bites caret => ToDo + gtk_widget_set_double_buffered(AWidget, False); // True bites caret => ToDo gtk_widget_set_redraw_on_allocate(AWidget, False); {$ENDIF} In Lazarus svn 15362 Mattias changed "gtk_widget_set_double_buffered" from False to True (with decription "gtk2 intf: moved doublebuffering from synedit to gtk2 as this is faster since gtk2.12"), is this really needed? If Lazarus cannot be changed, does anyone have any idea on how to fix this in GLScene? Regards, Paulo _______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus