mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 20:18:19 +00:00
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:
parent
aa80bae690
commit
eecaf4cdfc
|
@ -558,9 +558,6 @@ private:
|
|||
|
||||
// set glyph info
|
||||
{
|
||||
const int BmpWidth = pBitmap->width + x * 2;
|
||||
const int BmpHeight = pBitmap->rows + y * 2;
|
||||
|
||||
Glyph.m_Height = Height;
|
||||
Glyph.m_Width = Width;
|
||||
Glyph.m_CharHeight = RealHeight;
|
||||
|
@ -571,8 +568,8 @@ private:
|
|||
|
||||
Glyph.m_aUVs[0] = X;
|
||||
Glyph.m_aUVs[1] = Y;
|
||||
Glyph.m_aUVs[2] = Glyph.m_aUVs[0] + BmpWidth;
|
||||
Glyph.m_aUVs[3] = Glyph.m_aUVs[1] + BmpHeight;
|
||||
Glyph.m_aUVs[2] = Glyph.m_aUVs[0] + Width;
|
||||
Glyph.m_aUVs[3] = Glyph.m_aUVs[1] + Height;
|
||||
|
||||
Glyph.m_State = SGlyph::EState::RENDERED;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue