Remove redundant BmpWidth/BmpHeight variables

They are identical to the `Width`/`Height` variables which specify the size of the glyph in the atlas texture.
This commit is contained in:
Robert Müller 2024-10-31 17:55:01 +01:00
parent aa80bae690
commit eecaf4cdfc

View file

@ -558,9 +558,6 @@ private:
// set glyph info // set glyph info
{ {
const int BmpWidth = pBitmap->width + x * 2;
const int BmpHeight = pBitmap->rows + y * 2;
Glyph.m_Height = Height; Glyph.m_Height = Height;
Glyph.m_Width = Width; Glyph.m_Width = Width;
Glyph.m_CharHeight = RealHeight; Glyph.m_CharHeight = RealHeight;
@ -571,8 +568,8 @@ private:
Glyph.m_aUVs[0] = X; Glyph.m_aUVs[0] = X;
Glyph.m_aUVs[1] = Y; Glyph.m_aUVs[1] = Y;
Glyph.m_aUVs[2] = Glyph.m_aUVs[0] + BmpWidth; Glyph.m_aUVs[2] = Glyph.m_aUVs[0] + Width;
Glyph.m_aUVs[3] = Glyph.m_aUVs[1] + BmpHeight; Glyph.m_aUVs[3] = Glyph.m_aUVs[1] + Height;
Glyph.m_State = SGlyph::EState::RENDERED; Glyph.m_State = SGlyph::EState::RENDERED;
} }