forked from AuroraMiddleware/gtk
colorscale: Remove some duplicated code
This commit is contained in:
parent
4c4bca0c39
commit
7344723a95
@ -105,18 +105,12 @@ gtk_color_scale_snapshot_trough (GtkColorScale *scale,
|
|||||||
bytes,
|
bytes,
|
||||||
stride);
|
stride);
|
||||||
g_bytes_unref (bytes);
|
g_bytes_unref (bytes);
|
||||||
|
|
||||||
gtk_snapshot_append_texture (snapshot,
|
|
||||||
texture,
|
|
||||||
&GRAPHENE_RECT_INIT(0, 0, width, height));
|
|
||||||
priv->hue_texture = texture;
|
priv->hue_texture = texture;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
gtk_snapshot_append_texture (snapshot,
|
||||||
gtk_snapshot_append_texture (snapshot,
|
priv->hue_texture,
|
||||||
priv->hue_texture,
|
&GRAPHENE_RECT_INIT(0, 0, width, height));
|
||||||
&GRAPHENE_RECT_INIT(0, 0, width, height));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (priv->type == GTK_COLOR_SCALE_ALPHA)
|
else if (priv->type == GTK_COLOR_SCALE_ALPHA)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user