Revert changes to some maths operation
This commit is contained in:
parent
48f7cc2d46
commit
bc852d8840
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user