Skip to content

Commit

Permalink
remove unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
marauder2k7 committed Nov 28, 2024
1 parent 70090a9 commit b320041
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions Engine/source/gfx/gFont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -933,8 +933,6 @@ bool GFont::read(Stream& io_rStream)
io_rStream.read(&ci.bitmapIndex);
io_rStream.read(&ci.xOffset);
io_rStream.read(&ci.yOffset);
io_rStream.read(&ci.texWidth);
io_rStream.read(&ci.texHeight);
io_rStream.read(&ci.width);
io_rStream.read(&ci.height);
io_rStream.read(&ci.xOrigin);
Expand Down Expand Up @@ -1003,8 +1001,6 @@ bool GFont::write(Stream& stream)
stream.write(ci.bitmapIndex);
stream.write(ci.xOffset);
stream.write(ci.yOffset);
stream.write(ci.texWidth);
stream.write(ci.texHeight);
stream.write(ci.width);
stream.write(ci.height);
stream.write(ci.xOrigin);
Expand Down
2 changes: 1 addition & 1 deletion Engine/source/gfx/gfxFontRenderBatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void FontRenderBatcher::render( F32 rot, const Point2F &offset )
const PlatformFont::CharInfo &ci = mFont->getCharInfo( m.c );

// Where are we drawing it?
F32 drawY = offset.y + (mFont->getBaseline()) - (ci.yOrigin) - (mFont->getDescent());
F32 drawY = offset.y + mFont->getBaseline() - ci.yOrigin * TEXT_MAG;
F32 drawX = offset.x + m.x + ci.xOrigin;

// Figure some values.
Expand Down
2 changes: 0 additions & 2 deletions Engine/source/platform/platformFont.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ class PlatformFont
/// rendered, i.e., \n, \r, etc.
U32 xOffset; ///< x offset into bitmap sheet
U32 yOffset; ///< y offset into bitmap sheet
U32 texWidth;
U32 texHeight;
U32 width; ///< width of character (pixels)
U32 height; ///< height of character (pixels)
S32 xOrigin;
Expand Down

0 comments on commit b320041

Please sign in to comment.