forked from AuroraMiddleware/gtk
textlayout: fix bounds for clipping
This should match gtk_snapshot_append_layout(), which means that we expect the bounds to be rooted at 0, 0.
This commit is contained in:
parent
980a6a20b1
commit
e475d4bdc5
@ -4036,11 +4036,7 @@ gtk_text_layout_snapshot (GtkTextLayout *layout,
|
||||
crenderer->snapshot = snapshot;
|
||||
crenderer->fg_color = color;
|
||||
|
||||
graphene_rect_init (&crenderer->bounds,
|
||||
clip->x,
|
||||
clip->y,
|
||||
clip->width,
|
||||
clip->height);
|
||||
graphene_rect_init (&crenderer->bounds, 0, 0, clip->width, clip->height);
|
||||
|
||||
gtk_text_layout_wrap_loop_start (layout);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user