调整渲染FPS时的细节

This commit is contained in:
Nomango 2018-04-22 16:14:04 +08:00
parent e318679d3d
commit d6e2ca919b
3 changed files with 4 additions and 4 deletions

View File

@ -199,8 +199,8 @@ void e2d::Renderer::__render()
s_pTextRenderer->SetTextStyle(
D2D1::ColorF(D2D1::ColorF::White),
TRUE,
D2D1::ColorF(D2D1::ColorF::Black),
1.0f,
D2D1::ColorF(D2D1::ColorF::Black, 0.4f),
1.5f,
D2D1_LINE_JOIN::D2D1_LINE_JOIN_ROUND
);

View File

@ -9,7 +9,7 @@ e2d::TextStyle::TextStyle()
, hasUnderline(false)
, hasStrikethrough(false)
, hasOutline(true)
, outlineColor(Color::BLACK)
, outlineColor(Color(Color::BLACK, 0.5))
, outlineWidth(1.0)
, outlineJoin(LineJoin::ROUND)
{}

View File

@ -507,7 +507,7 @@ struct TextStyle
bool hasUnderline = false,
bool hasStrikethrough = false,
bool hasOutline = true,
Color outlineColor = Color::BLACK,
Color outlineColor = Color(Color::BLACK, 0.5),
double outlineWidth = 1.0,
int outlineJoin = LineJoin::ROUND
);