renderer/metal: set correct x/y for image

This commit is contained in:
Mitchell Hashimoto
2023-08-22 10:14:57 -07:00
parent cb70d86c00
commit 53b25d0ecc

View File

@ -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,
}); });
} }
} }