Skip to content

Commit

Permalink
ChatWindow: fix minor text misalignments
Browse files Browse the repository at this point in the history
  • Loading branch information
siecvi committed Dec 9, 2024
1 parent a15cefe commit 050530e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Client/ChatWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ namespace spades {
colorP.z *= colorP.w;
renderer->SetColorAlphaPremultiplied(colorP);
renderer->DrawImage(img, MakeVector2(tx + curPosX + 1, ty + winY).Floor());
tx += img->GetWidth();
tx += (int)roundf(img->GetWidth());
++i;
}
} else {
Expand All @@ -295,7 +295,7 @@ namespace spades {
font->DrawShadow(ch, pos, 1.0F, color, shadow);
}

tx += font->Measure(ch).x;
tx += (int)roundf(font->Measure(ch).x);
}
}

Expand Down

0 comments on commit 050530e

Please sign in to comment.