From de57bcd1bc4726cb172e238f64d4216b2aa65a36 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Fri, 16 Nov 2018 23:25:31 -0800 Subject: [PATCH] Fix drawing background before drawing toolbar bitmap The Cairo origin is already set up for the widget --- src/gtk/toolbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/toolbar.cpp b/src/gtk/toolbar.cpp index d6d399b4a7..df9733c111 100644 --- a/src/gtk/toolbar.cpp +++ b/src/gtk/toolbar.cpp @@ -196,7 +196,7 @@ image_expose_event(GtkWidget* widget, GdkEventExpose*, wxToolBarTool* tool) int y = (alloc.height - bitmap.GetScaledHeight()) / 2; #ifdef __WXGTK3__ gtk_render_background(gtk_widget_get_style_context(widget), - cr, alloc.x, alloc.y, alloc.width, alloc.height); + cr, 0, 0, alloc.width, alloc.height); bitmap.Draw(cr, x, y); #else x += alloc.x;