Skip to content
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.

Commit

Permalink
ogre: ogrefont.patch (Ezzel vannak végre a SampleBrowser -ben betűk is.)
Browse files Browse the repository at this point in the history
  • Loading branch information
attuska committed Dec 19, 2016
1 parent 899c6b1 commit a76e38f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ogre/patches/ogrefont.patch
@@ -0,0 +1,14 @@
diff -Nur orig/Components/Overlay/src/OgreFont.cpp mod/Components/Overlay/src/OgreFont.cpp
--- orig/Components/Overlay/src/OgreFont.cpp 2013-12-01 18:28:12.000000000 +0100
+++ mod/Components/Overlay/src/OgreFont.cpp 2016-12-19 22:15:48.009808091 +0100
@@ -297,8 +297,8 @@
{
FT_Load_Char( face, cp, FT_LOAD_RENDER );

- if( ( 2 * ( face->glyph->bitmap.rows << 6 ) - face->glyph->metrics.horiBearingY ) > max_height )
- max_height = ( 2 * ( face->glyph->bitmap.rows << 6 ) - face->glyph->metrics.horiBearingY );
+ if( ( 2 * ( ((int)face->glyph->bitmap.rows) << 6 ) - face->glyph->metrics.horiBearingY ) > max_height )
+ max_height = ( 2 * ( ((int)face->glyph->bitmap.rows) << 6 ) - face->glyph->metrics.horiBearingY );
if( face->glyph->metrics.horiBearingY > mTtfMaxBearingY )
mTtfMaxBearingY = static_cast<int>(face->glyph->metrics.horiBearingY);

0 comments on commit a76e38f

Please sign in to comment.