Draw background before drawing toolbar bitmap.

The background may not have been painted for us.
This commit is contained in:
Paul Cornett 2018-11-01 11:05:41 -07:00
parent abf9678337
commit ed442cd574

View File

@ -195,6 +195,8 @@ image_expose_event(GtkWidget* widget, GdkEventExpose*, wxToolBarTool* tool)
int x = (alloc.width - bitmap.GetScaledWidth()) / 2;
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);
bitmap.Draw(cr, x, y);
#else
x += alloc.x;