Changeset 5111 in orxonox.OLD for trunk/src/lib/graphics/text_engine.cc
- Timestamp:
- Aug 23, 2005, 11:13:56 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine.cc
r5110 r5111 592 592 if( glyphSurf != NULL ) 593 593 { 594 594 595 SDL_SetAlpha(glyphSurf, 0, 0); 595 596 … … 597 598 TexCoord tmpTexCoord; 598 599 tmpTexCoord.minU = (float)tmpRect.x/(float)tmpSurf->w; 599 tmpTexCoord.maxU = (float)(tmpRect.x +1 + 600 tmpTexCoord.maxU = (float)(tmpRect.x +1 +tmpGlyph->width)/(float)tmpSurf->w; 600 601 tmpTexCoord.minV = (float)tmpRect.y/(float)tmpSurf->w; 601 602 tmpTexCoord.maxV = (float)(tmpRect.y+tmpGlyph->height)/(float)tmpSurf->w; … … 619 620 620 621 // Outputting Glyphs to BMP-files. 621 /*622 char outname[ 512];622 /* 623 char outname[64]; 623 624 if (i < 10) 624 sprintf( outname, " %s-glyph-00%d.bmp", this->getName(), i );625 sprintf( outname, "glyph-00%d.bmp", i ); 625 626 else if (i <100) 626 sprintf( outname, "%s-glyph-0%d.bmp", this->getName(), i );627 sprintf( outname, "glyph-0%d.bmp", i ); 627 628 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 */ 631 632 } 632 633 } … … 711 712 x = 0; 712 713 y = y + maxLineHeight; 713 //maxLineHeight = 0;714 maxLineHeight = 0; 714 715 } 715 716 if (y + maxLineHeight + 1 > size) … … 845 846 846 847 tIterator<BaseObject>* textIterator = ClassList::getList(CL_TEXT)->getIterator(); 847 Text* text = dynamic_cast<Text*>(textIterator-> firstElement());848 Text* text = dynamic_cast<Text*>(textIterator->nextElement()); 848 849 while( text != NULL) 849 850 {
Note: See TracChangeset
for help on using the changeset viewer.