Revert changes to some maths operation

This commit is contained in:
FutureRave 2022-03-11 10:42:22 +00:00
parent 48f7cc2d46
commit bc852d8840
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -53,10 +53,10 @@ namespace Assets
auto& glyph = glyphs[i++];
glyph.letter = ch;
glyph.s0 = static_cast<float>(x / pw);
glyph.s1 = static_cast<float>((x + gw) / pw);
glyph.t0 = static_cast<float>(y / ph);
glyph.t1 = static_cast<float>((y + gh) / ph);
glyph.s0 = x / static_cast<float>(pw);
glyph.s1 = (x + gw) / static_cast<float>(pw);
glyph.t0 = y / static_cast<float>(ph);
glyph.t1 = (y + gh) / static_cast<float>(ph);
glyph.pixelWidth = static_cast<char>(gw);
glyph.pixelHeight = static_cast<char>(gh);
glyph.x0 = static_cast<char>(x0);