mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 14:50:06 +00:00
gl renderer: Fix debug color output
This commit is contained in:
parent
49845795d9
commit
5b072e716c
@ -2479,7 +2479,7 @@ apply_color_op (const Program *program,
|
|||||||
const OpColor *op)
|
const OpColor *op)
|
||||||
{
|
{
|
||||||
OP_PRINT (" -> Color: (%f, %f, %f, %f)",
|
OP_PRINT (" -> Color: (%f, %f, %f, %f)",
|
||||||
op->rgba.red, op->rgba.green, op->rgba.blue, op->rgba.alpha);
|
op->rgba->red, op->rgba->green, op->rgba->blue, op->rgba->alpha);
|
||||||
glUniform4fv (program->color.color_location, 1, (float *)op->rgba);
|
glUniform4fv (program->color.color_location, 1, (float *)op->rgba);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2540,11 +2540,8 @@ static inline void
|
|||||||
apply_inset_shadow_op (const Program *program,
|
apply_inset_shadow_op (const Program *program,
|
||||||
const OpShadow *op)
|
const OpShadow *op)
|
||||||
{
|
{
|
||||||
OP_PRINT (" -> inset shadow. Color: (%f, %f, %f, %f), Offset: (%f, %f), Spread: %f, Outline: %s",
|
OP_PRINT (" -> inset shadow. Color: %s, Offset: (%f, %f), Spread: %f, Outline: %s",
|
||||||
op->color[0],
|
gdk_rgba_to_string (op->color),
|
||||||
op->color[1],
|
|
||||||
op->color[2],
|
|
||||||
op->color[3],
|
|
||||||
op->offset[0],
|
op->offset[0],
|
||||||
op->offset[1],
|
op->offset[1],
|
||||||
op->spread,
|
op->spread,
|
||||||
@ -2620,8 +2617,7 @@ static inline void
|
|||||||
apply_border_color_op (const Program *program,
|
apply_border_color_op (const Program *program,
|
||||||
const OpBorder *op)
|
const OpBorder *op)
|
||||||
{
|
{
|
||||||
OP_PRINT (" -> Border color (%f, %f, %f, %f)",
|
OP_PRINT (" -> Border color: %s", gdk_rgba_to_string (op->color));
|
||||||
op->color[0], op->color[1], op->color[2], op->color[3]);
|
|
||||||
glUniform4fv (program->border.color_location, 1, (float *)op->color);
|
glUniform4fv (program->border.color_location, 1, (float *)op->color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user