Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5113 in orxonox.OLD for trunk/src/lib/graphics/text_engine.cc


Ignore:
Timestamp:
Aug 23, 2005, 11:18:39 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk:restoring the trunk…

File:
1 edited

Legend:

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

    r5111 r5113  
    592592          if( glyphSurf != NULL )
    593593            {
    594 
    595594              SDL_SetAlpha(glyphSurf, 0, 0);
    596595
     
    598597              TexCoord tmpTexCoord;
    599598              tmpTexCoord.minU = (float)tmpRect.x/(float)tmpSurf->w;
    600               tmpTexCoord.maxU = (float)(tmpRect.x +1 +tmpGlyph->width)/(float)tmpSurf->w;
     599              tmpTexCoord.maxU = (float)(tmpRect.x +1 + tmpGlyph->width)/(float)tmpSurf->w;
    601600              tmpTexCoord.minV = (float)tmpRect.y/(float)tmpSurf->w;
    602601              tmpTexCoord.maxV = (float)(tmpRect.y+tmpGlyph->height)/(float)tmpSurf->w;
     
    620619
    621620              // Outputting Glyphs to BMP-files.
    622               /*
    623                 char outname[64];
     621/*
     622                char outname[512];
    624623                if (i < 10)
    625                 sprintf( outname, "glyph-00%d.bmp", i );
     624                sprintf( outname, "%s-glyph-00%d.bmp", this->getName(), i );
    626625                else if (i <100)
    627                 sprintf( outname, "glyph-0%d.bmp", i );
     626                  sprintf( outname, "%s-glyph-0%d.bmp", this->getName(), i );
    628627                else
    629                 sprintf( outname, "glyph-%d.bmp", i );
    630                 SDL_SaveBMP(tmpSurf, outname);
    631               */
     628                  sprintf( outname, "%s-glyph-%d.bmp", this->getName(), i );
     629                SDL_SaveBMP(tmpSurf, outname);*/
     630
    632631            }
    633632        }
     
    712711                  x = 0;
    713712                  y = y + maxLineHeight;
    714                   maxLineHeight = 0;
     713                  //maxLineHeight = 0;
    715714                }
    716715              if (y + maxLineHeight + 1 > size)
Note: See TracChangeset for help on using the changeset viewer.