Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 24, 2005, 12:56:07 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: font renders nicer, but not perfect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/text_engine.cc

    r4681 r4683  
    622622            {
    623623              tmpRect.x = 0;
    624               tmpRect.y = tmpRect.y + maxLineHeight + 1;
     624              tmpRect.y = tmpRect.y + maxLineHeight + 2;
    625625              maxLineHeight = 0;
    626626            }
     
    641641              TexCoord tmpTexCoord;
    642642              tmpTexCoord.minU = (float)tmpRect.x/(float)tmpSurf->w;
    643               tmpTexCoord.maxU = (float)(tmpRect.x+tmpGlyph->width)/(float)tmpSurf->w;
     643              tmpTexCoord.maxU = (float)(tmpRect.x +1 +tmpGlyph->width)/(float)tmpSurf->w;
    644644              tmpTexCoord.minV = (float)tmpRect.y/(float)tmpSurf->w;
    645645              tmpTexCoord.maxV = (float)(tmpRect.y+tmpGlyph->height)/(float)tmpSurf->w;
     
    660660              SDL_FreeSurface(glyphSurf);
    661661
    662               tmpRect.x += tmpGlyph->width + 1;
     662              tmpRect.x += tmpGlyph->width + 2;
    663663
    664664              // Outputting Glyphs to BMP-files.
Note: See TracChangeset for help on using the changeset viewer.