Skip to content

Commit

Permalink
GRAPHICS: Fix rendering artifacts by rounding the starting position
Browse files Browse the repository at this point in the history
  • Loading branch information
farmboy0 authored and DrMcCoy committed Dec 13, 2017
1 parent 03e5cce commit 9675cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphics/aurora/text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void Text::render(RenderPass pass) {
float blockSize = lines.size() * lineHeight;

// Move position to the top
glTranslatef(0.0f, ((_height - blockSize) * _valign) + blockSize - lineHeight, 0.0f);
glTranslatef(0.0f, roundf(((_height - blockSize) * _valign) + blockSize - lineHeight), 0.0f);

size_t position = 0;

Expand Down

0 comments on commit 9675cc8

Please sign in to comment.