Changeset 5106 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Aug 23, 2005, 8:09:58 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine.cc
r5090 r5106 592 592 if( glyphSurf != NULL ) 593 593 { 594 595 594 SDL_SetAlpha(glyphSurf, 0, 0); 596 595 … … 598 597 TexCoord tmpTexCoord; 599 598 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; 601 600 tmpTexCoord.minV = (float)tmpRect.y/(float)tmpSurf->w; 602 601 tmpTexCoord.maxV = (float)(tmpRect.y+tmpGlyph->height)/(float)tmpSurf->w; … … 620 619 621 620 // Outputting Glyphs to BMP-files. 622 623 char outname[ 64];621 /* 622 char outname[512]; 624 623 if (i < 10) 625 sprintf( outname, " glyph-00%d.bmp", i );624 sprintf( outname, "%s-glyph-00%d.bmp", this->getName(), i ); 626 625 else if (i <100) 627 sprintf( outname, "glyph-0%d.bmp", i );626 sprintf( outname, "%s-glyph-0%d.bmp", this->getName(), i ); 628 627 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 632 631 } 633 632 } … … 712 711 x = 0; 713 712 y = y + maxLineHeight; 714 maxLineHeight = 0;713 //maxLineHeight = 0; 715 714 } 716 715 if (y + maxLineHeight + 1 > size)
Note: See TracChangeset
for help on using the changeset viewer.