Browse Source

Fehler bei unterstrichenem text behoben

Kolja Strohm 5 years ago
parent
commit
b87b70d64a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Schrift.cpp

+ 2 - 2
Schrift.cpp

@@ -756,7 +756,7 @@ void TextRenderer::renderChar( int &x, int y, char c, Bild &zRObj, int color, bo
                 }
             }
             if( underlined )
-                zRObj.drawLinieHAlpha( x - (int)( zeichenAbstand / 2.0 + 0.5 ), y + getZeilenHeight() + getZeichenAbstand() / 2, getCharWidth( c ) + (int)( zeichenAbstand / 2.0 + 0.5 ), color );
+                zRObj.drawLinieHAlpha( x - (int)( zeichenAbstand / 2.0 + 0.5 ), y + getZeilenHeight() + getZeichenAbstand() / 2, getCharWidth( c ) + (int)( zeichenAbstand / 2.0 + 0.5 ), 0xFF000000 | color );
         }
         x += getCharWidth( c ) + zeichenAbstand;
     }
@@ -1025,7 +1025,7 @@ void GravurTextRenderer::renderChar( int &x, int y, char c, Bild &zRObj, int col
                 }
             }
             if( underlined )
-                zRObj.drawLinieHAlpha( x - (int)( zeichenAbstand / 2.0 + 0.5 ), y + getZeilenHeight() + getZeichenAbstand() / 2, getCharWidth( c ) + (int)( zeichenAbstand / 2.0 + 0.5 ), color );
+                zRObj.drawLinieHAlpha( x - (int)( zeichenAbstand / 2.0 + 0.5 ), y + getZeilenHeight() + getZeichenAbstand() / 2, getCharWidth( c ) + (int)( zeichenAbstand / 2.0 + 0.5 ), 0xFF000000 | color );
         }
         x += getCharWidth( c ) + zeichenAbstand;
     }