Bladeren bron

Gravurtext besser lesbar

Kolja Strohm 6 jaren geleden
bovenliggende
commit
7603425e94
1 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 6 6
      Schrift.cpp

+ 6 - 6
Schrift.cpp

@@ -989,12 +989,12 @@ void GravurTextRenderer::renderChar( int &x, int y, char c, Bild &zRObj, bool se
                         {
                             int f = 0;
                             if( b->getBuff()[ (int)x + ygr ] )
-                                f = 0x20000000;
+                                f = 0x50000000;
                             else if( ( (int)( x + xoff ) < br && b->getBuff()[ (int)( x + xoff ) + ygr ] ) || ( (int)( y - yoff ) < h && b->getBuff()[ (int)x + (int)( y - yoff ) * br ] > 0xF0 ) )
-                                f = 0x70000000;
+                                f = 0xA0000000;
                             else if( ( (int)( x - xoff ) < br && b->getBuff()[ (int)( x - xoff ) + ygr ] ) || ( (int)( y + yoff ) < h && b->getBuff()[ (int)x + (int)( y + yoff ) * br ] > 0xF0 ) )
                             {
-                                f = 0x70FFFFFF;
+                                f = 0xA0FFFFFF;
                             }
                             zRObj.alphaPixel3D( xp + dx + ygr2, f );
                             x += xoff;
@@ -1013,12 +1013,12 @@ void GravurTextRenderer::renderChar( int &x, int y, char c, Bild &zRObj, bool se
                         {
                             int f = 0;
                             if( b->getBuff()[ (int)x + ygr ] )
-                                f = 0x20000000;
+                                f = 0x50000000;
                             else if( ( (int)( x + xoff ) < br && b->getBuff()[ (int)( x + xoff ) + ygr ] ) || ( (int)( y - yoff ) < h && b->getBuff()[ (int)x + (int)( y - yoff ) * br ] > 0xF0 ) )
-                                f = 0x70000000;
+                                f = 0xA0000000;
                             else if( ( (int)( x - xoff ) < br && b->getBuff()[ (int)( x - xoff ) + ygr ] ) || ( (int)( y + yoff ) < h && b->getBuff()[ (int)x + (int)( y + yoff ) * br ] > 0xF0 ) )
                             {
-                                f = 0x70FFFFFF;
+                                f = 0xA0FFFFFF;
                             }
                             zRObj.alphaPixel2D( xp + dx + ygr2, f );
                             x += xoff;