Skip to content

Commit

Permalink
Update SampleViewer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
wkjarosz committed Nov 27, 2023
1 parent 0a88f2b commit b031d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/SampleViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b031d13

Please sign in to comment.