Commit 579cfc06 authored by Jehan's avatar Jehan

libgimpwidgets: on HiPPI display, fix stroked eye when parent item…

… is invisible.
The GimpCellRendererToggle inconsistent state was not HiPPI-aware.
parent 1e768299
Pipeline #259485 passed with stages
in 47 minutes and 57 seconds
......@@ -441,13 +441,13 @@ gimp_cell_renderer_toggle_render (GtkCellRenderer *cell,
gtk_style_context_get_color (context, state, &color);
gdk_cairo_set_source_rgba (cr, &color);
cairo_set_line_width (cr, 1.5);
cairo_set_line_width (cr, scale_factor * 1.5);
cairo_move_to (cr,
toggle_rect.x + toggle_rect.width - 1,
toggle_rect.y + 1);
toggle_rect.x + scale_factor * (toggle_rect.width - 1),
toggle_rect.y + scale_factor);
cairo_line_to (cr,
toggle_rect.x + 1,
toggle_rect.y + toggle_rect.height - 1);
toggle_rect.x + scale_factor,
toggle_rect.y + scale_factor * (toggle_rect.height - 1));
cairo_stroke (cr);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment