mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 06:10:21 +00:00
ngl Fix bottom-right border render failure
The wrong index was used for offsetting the bottom border rect. Test included.
This commit is contained in:
parent
7cf5e5546b
commit
62954a0338
@ -1734,7 +1734,7 @@ gsk_ngl_render_job_visit_rect_border_node (GskNglRenderJob *job,
|
|||||||
{
|
{
|
||||||
rgba_to_half (&colors[2], color);
|
rgba_to_half (&colors[2], color);
|
||||||
gsk_ngl_render_job_draw_rect_with_color (job,
|
gsk_ngl_render_job_draw_rect_with_color (job,
|
||||||
&GRAPHENE_RECT_INIT (origin->x + widths[3], origin->y + size->height - widths[2], size->width - widths[1], widths[2]),
|
&GRAPHENE_RECT_INIT (origin->x + widths[3], origin->y + size->height - widths[2], size->width - widths[3], widths[2]),
|
||||||
color);
|
color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
5
testsuite/gsk/compare/border-bottom-right.node
Normal file
5
testsuite/gsk/compare/border-bottom-right.node
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
border {
|
||||||
|
colors: red;
|
||||||
|
outline: 0 0 20 20;
|
||||||
|
widths: 0 10 10 0;
|
||||||
|
}
|
BIN
testsuite/gsk/compare/border-bottom-right.png
Normal file
BIN
testsuite/gsk/compare/border-bottom-right.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 103 B |
@ -23,6 +23,7 @@ compare_render_tests = [
|
|||||||
'blend-difference',
|
'blend-difference',
|
||||||
'blend-invisible-child',
|
'blend-invisible-child',
|
||||||
'blend-normal',
|
'blend-normal',
|
||||||
|
'border-bottom-right',
|
||||||
'borders-rotated',
|
'borders-rotated',
|
||||||
'borders-scaled',
|
'borders-scaled',
|
||||||
'clip-coordinates-2d',
|
'clip-coordinates-2d',
|
||||||
|
Loading…
Reference in New Issue
Block a user