forked from AuroraMiddleware/gtk
widget: Avoid a dead assignment
This commit is contained in:
parent
497d2f8c50
commit
3a995b41d7
@ -13304,7 +13304,7 @@ void
|
||||
gtk_widget_snapshot (GtkWidget *widget,
|
||||
GtkSnapshot *snapshot)
|
||||
{
|
||||
GtkWidgetPrivate *priv = widget->priv;
|
||||
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
|
||||
graphene_rect_t clip;
|
||||
gboolean has_clip;
|
||||
double opacity;
|
||||
@ -13318,8 +13318,6 @@ gtk_widget_snapshot (GtkWidget *widget,
|
||||
return;
|
||||
}
|
||||
|
||||
priv = widget->priv;
|
||||
|
||||
opacity = widget->priv->alpha / 255.0;
|
||||
if (opacity <= 0.0)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user