mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-23 20:30:15 +00:00
gl: Handle text colors with color states
Since we don't have proper color management here, just convert any color we meet to sRGB and hope for the best.
This commit is contained in:
parent
92bd85ba30
commit
23922eebf1
@ -4221,10 +4221,12 @@ gsk_gl_render_job_visit_node (GskGLRenderJob *job,
|
||||
break;
|
||||
|
||||
case GSK_TEXT_NODE:
|
||||
gsk_gl_render_job_visit_text_node (job,
|
||||
node,
|
||||
gsk_text_node_get_color (node),
|
||||
FALSE);
|
||||
{
|
||||
GdkRGBA rgba;
|
||||
|
||||
gdk_color_to_float (gsk_text_node_get_color2 (node), GDK_COLOR_STATE_SRGB, (float *) &rgba);
|
||||
gsk_gl_render_job_visit_text_node (job, node, &rgba, FALSE);
|
||||
}
|
||||
break;
|
||||
|
||||
case GSK_TEXTURE_NODE:
|
||||
|
Loading…
Reference in New Issue
Block a user