From 56626f73bf1f5d160aff866f6dd51cd1f3dad87f Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Tue, 10 May 2022 16:38:21 -0700 Subject: [PATCH] fmt: fix 'ambigous overload' error --- Source/Core/VideoCommon/BPMemory.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/Core/VideoCommon/BPMemory.h b/Source/Core/VideoCommon/BPMemory.h index 4729e06be5..28155a2cd6 100644 --- a/Source/Core/VideoCommon/BPMemory.h +++ b/Source/Core/VideoCommon/BPMemory.h @@ -1231,10 +1231,10 @@ struct fmt::formatter template auto format(const ScissorPos& pos, FormatContext& ctx) { - return format_to(ctx.out(), - "X: {} (raw: {})\n" - "Y: {} (raw: {})", - pos.x - 342, pos.x_full, pos.y - 342, pos.y_full); + return fmt::format_to(ctx.out(), + "X: {} (raw: {})\n" + "Y: {} (raw: {})", + pos.x - 342, pos.x_full, pos.y - 342, pos.y_full); } }; @@ -1257,10 +1257,10 @@ struct fmt::formatter template auto format(const ScissorOffset& off, FormatContext& ctx) { - return format_to(ctx.out(), - "X: {} (raw: {})\n" - "Y: {} (raw: {})", - (off.x << 1) - 342, off.x_full, (off.y << 1) - 342, off.y_full); + return fmt::format_to(ctx.out(), + "X: {} (raw: {})\n" + "Y: {} (raw: {})", + (off.x << 1) - 342, off.x_full, (off.y << 1) - 342, off.y_full); } };