diff --git a/gb.gtk/src/gmainwindow.cpp b/gb.gtk/src/gmainwindow.cpp index 31d93a8a8..3aa06575f 100644 --- a/gb.gtk/src/gmainwindow.cpp +++ b/gb.gtk/src/gmainwindow.cpp @@ -258,12 +258,9 @@ static gboolean cb_configure(GtkWidget *widget, GdkEventConfigure *event, gMainW #ifdef GTK3 static gboolean cb_draw(GtkWidget *wid, cairo_t *cr, gMainWindow *data) { - if (data->isTransparent()) + if (data->background() != COLOR_DEFAULT) { - if (data->background() == COLOR_DEFAULT) - gt_cairo_set_source_color(cr, 0XFF000000); - else - gt_cairo_set_source_color(cr, data->background()); + gt_cairo_set_source_color(cr, data->background()); cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE); cairo_paint(cr); }