Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The transform rect of draw list items needs to append parent's world transform. #313

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -946,8 +946,8 @@ impl Frame {
let layer = self.layers.get_mut(&info.actual_scroll_layer_id).unwrap();
for (item_index, item) in draw_list.items.iter().enumerate() {
let item_index = DrawListItemIndex(item_index as u32);
let rect = item.rect
.translate(&info.offset_from_current_layer);
let rect = info.world_transform.transform_rect(&item.rect
.translate(&info.offset_from_current_layer));
layer.insert(rect,
draw_list_group_id,
draw_list_id,
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.