From b031d13b40f0ad3cd6a891032b018939777f2394 Mon Sep 17 00:00:00 2001 From: Wojciech Jarosz Date: Mon, 27 Nov 2023 14:20:58 +0100 Subject: [PATCH] Update SampleViewer.cpp --- gui/SampleViewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/SampleViewer.cpp b/gui/SampleViewer.cpp index 2b69657..c239b3b 100644 --- a/gui/SampleViewer.cpp +++ b/gui/SampleViewer.cpp @@ -953,7 +953,7 @@ void SampleViewer::draw() void SampleViewer::draw_text(const int2 &pos, const string &text, const float4 &color, int font_size, int fixed_width, int align) const { - float2 apos{pos.x, pos.y}; + float2 apos{pos}; float2 size = ImGui::CalcTextSize(text.c_str()); if (align & TextAlign_LEFT)