Skip to content

Commit

Permalink
Fix the fade issue on outlined text
Browse files Browse the repository at this point in the history
  • Loading branch information
Dextinfire committed Sep 30, 2024
1 parent f3f2c4f commit e9db88c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/renderer/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ void BaseRenderer::DrawProcessedText_BasicFont(
Sprite mask;
mask.Sheet = *maskedSheet;
mask.Bounds = dest;
DrawMaskedSpriteOverlay(glyph, mask, dest, color, color.a * 256, 20,
false, 0, false, i == 0);
DrawMaskedSpriteOverlay(glyph, mask, dest, color, color.a * 255,
256, false, 0, false, i == 0);
} else {
DrawSprite(glyph, dest, color);
}
Expand All @@ -111,8 +111,8 @@ void BaseRenderer::DrawProcessedText_BasicFont(
Sprite mask;
mask.Sheet = *maskedSheet;
mask.Bounds = dest;
DrawMaskedSpriteOverlay(glyph, mask, dest, color, color.a * 256, 20,
false, 0, false, i == 0);
DrawMaskedSpriteOverlay(glyph, mask, dest, color, color.a * 255,
256, false, 0, false, i == 0);
} else {
DrawSprite(glyph, dest, color);
}
Expand All @@ -136,8 +136,8 @@ void BaseRenderer::DrawProcessedText_BasicFont(
mask.Sheet = *maskedSheet;
mask.Bounds = text[i].DestRect;
DrawMaskedSpriteOverlay(font->Glyph(text[i].CharId), mask,
text[i].DestRect, color, color.a * 256, 20, false,
0, false);
text[i].DestRect, color, color.a * 255, 256,
false, 0, false);
} else {
DrawSprite(font->Glyph(text[i].CharId), text[i].DestRect, color);
}
Expand Down Expand Up @@ -171,8 +171,8 @@ void BaseRenderer::DrawProcessedText_LBFont(
mask.Sheet = *maskedSheet;
mask.Bounds = outlineDest;
DrawMaskedSpriteOverlay(font->OutlineGlyph(text[i].CharId), mask,
outlineDest, color, color.a * 256, 20, false, 0,
false, i == 0);
outlineDest, color, color.a * 255, 256, false,
0, false, i == 0);
} else {
DrawSprite(font->OutlineGlyph(text[i].CharId), outlineDest, color);
}
Expand Down

0 comments on commit e9db88c

Please sign in to comment.