Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

orxonox/trunk: reverted the last steps, because they created a huge pack of seg-faults

File:
1 edited

Legend:

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

    r5110 r5111  
    592592          if( glyphSurf != NULL )
    593593            {
     594
    594595              SDL_SetAlpha(glyphSurf, 0, 0);
    595596
     
    597598              TexCoord tmpTexCoord;
    598599              tmpTexCoord.minU = (float)tmpRect.x/(float)tmpSurf->w;
    599               tmpTexCoord.maxU = (float)(tmpRect.x +1 + tmpGlyph->width)/(float)tmpSurf->w;
     600              tmpTexCoord.maxU = (float)(tmpRect.x +1 +tmpGlyph->width)/(float)tmpSurf->w;
    600601              tmpTexCoord.minV = (float)tmpRect.y/(float)tmpSurf->w;
    601602              tmpTexCoord.maxV = (float)(tmpRect.y+tmpGlyph->height)/(float)tmpSurf->w;
     
    619620
    620621              // Outputting Glyphs to BMP-files.
    621 /*
    622                 char outname[512];
     622              /*
     623                char outname[64];
    623624                if (i < 10)
    624                 sprintf( outname, "%s-glyph-00%d.bmp", this->getName(), i );
     625                sprintf( outname, "glyph-00%d.bmp", i );
    625626                else if (i <100)
    626                   sprintf( outname, "%s-glyph-0%d.bmp", this->getName(), i );
     627                sprintf( outname, "glyph-0%d.bmp", i );
    627628                else
    628                   sprintf( outname, "%s-glyph-%d.bmp", this->getName(), i );
    629                 SDL_SaveBMP(tmpSurf, outname);*/
    630 
     629                sprintf( outname, "glyph-%d.bmp", i );
     630                SDL_SaveBMP(tmpSurf, outname);
     631              */
    631632            }
    632633        }
     
    711712                  x = 0;
    712713                  y = y + maxLineHeight;
    713                   //maxLineHeight = 0;
     714                  maxLineHeight = 0;
    714715                }
    715716              if (y + maxLineHeight + 1 > size)
     
    845846
    846847  tIterator<BaseObject>* textIterator = ClassList::getList(CL_TEXT)->getIterator();
    847   Text* text = dynamic_cast<Text*>(textIterator->firstElement());
     848  Text* text = dynamic_cast<Text*>(textIterator->nextElement());
    848849  while( text != NULL)
    849850    {
Note: See TracChangeset for help on using the changeset viewer.