mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-24 18:07:01 +00:00
Fix test broken by clipping of images to screen area
This commit is contained in:
parent
4bc852e615
commit
ad5a276ddb
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ class TestGraphics(BaseTest):
|
|||
self.ae(len(l), 2)
|
||||
rect_eq(l[0]['src_rect'], 2 / 10, 1 / 20, (2 + 3) / 10, (1 + 5)/20)
|
||||
left, top = -1 + dx + 3 * dx / cw, 1 - 1 * dy / ch
|
||||
rect_eq(l[0]['dest_rect'], left, top, -1 + (1 + s.columns) * dx, top - dy * 5 / ch)
|
||||
rect_eq(l[0]['dest_rect'], left, top, min(1, -1 + (1 + s.columns) * dx), max(-1, top - dy * 5 / ch))
|
||||
rect_eq(l[1]['src_rect'], 0, 0, 1, 1)
|
||||
rect_eq(l[1]['dest_rect'], -1, 1, -1 + dx, 1 - dy)
|
||||
self.ae(l[0]['group_count'], 1), self.ae(l[1]['group_count'], 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue