renderer/metal: image should always be rendered at desired x

This commit is contained in:
Mitchell Hashimoto
2023-08-22 12:24:58 -07:00
parent 65df9f4618
commit e4e952d077

View File

@ -927,7 +927,7 @@ fn prepKittyGraphics(
// Accumulate the placement
try self.image_placements.append(self.alloc, .{
.image_id = kv.key_ptr.image_id,
.x = @intCast(viewport.x),
.x = @intCast(kv.value_ptr.point.x),
.y = @intCast(viewport.y),
.offset_y = offset_y,
});