mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +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);
|
||||
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);
|
||||
}
|
||||
|
||||
|
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-invisible-child',
|
||||
'blend-normal',
|
||||
'border-bottom-right',
|
||||
'borders-rotated',
|
||||
'borders-scaled',
|
||||
'clip-coordinates-2d',
|
||||
|
Loading…
Reference in New Issue
Block a user