mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 08:16:13 +03:00
renderer/metal: set correct x/y for image
This commit is contained in:
@ -875,13 +875,14 @@ fn prepKittyGraphics(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Convert our screen point to a viewport point
|
||||||
|
const viewport = kv.value_ptr.point.toViewport(screen);
|
||||||
|
|
||||||
// Accumulate the placement
|
// Accumulate the placement
|
||||||
try self.image_placements.append(self.alloc, .{
|
try self.image_placements.append(self.alloc, .{
|
||||||
.image_id = kv.key_ptr.image_id,
|
.image_id = kv.key_ptr.image_id,
|
||||||
|
.x = @intCast(viewport.x),
|
||||||
// TODO
|
.y = @intCast(viewport.y),
|
||||||
.x = 0,
|
|
||||||
.y = 0,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user