调整渲染FPS时的细节
This commit is contained in:
parent
e318679d3d
commit
d6e2ca919b
|
|
@ -199,8 +199,8 @@ void e2d::Renderer::__render()
|
||||||
s_pTextRenderer->SetTextStyle(
|
s_pTextRenderer->SetTextStyle(
|
||||||
D2D1::ColorF(D2D1::ColorF::White),
|
D2D1::ColorF(D2D1::ColorF::White),
|
||||||
TRUE,
|
TRUE,
|
||||||
D2D1::ColorF(D2D1::ColorF::Black),
|
D2D1::ColorF(D2D1::ColorF::Black, 0.4f),
|
||||||
1.0f,
|
1.5f,
|
||||||
D2D1_LINE_JOIN::D2D1_LINE_JOIN_ROUND
|
D2D1_LINE_JOIN::D2D1_LINE_JOIN_ROUND
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ e2d::TextStyle::TextStyle()
|
||||||
, hasUnderline(false)
|
, hasUnderline(false)
|
||||||
, hasStrikethrough(false)
|
, hasStrikethrough(false)
|
||||||
, hasOutline(true)
|
, hasOutline(true)
|
||||||
, outlineColor(Color::BLACK)
|
, outlineColor(Color(Color::BLACK, 0.5))
|
||||||
, outlineWidth(1.0)
|
, outlineWidth(1.0)
|
||||||
, outlineJoin(LineJoin::ROUND)
|
, outlineJoin(LineJoin::ROUND)
|
||||||
{}
|
{}
|
||||||
|
|
|
||||||
|
|
@ -507,7 +507,7 @@ struct TextStyle
|
||||||
bool hasUnderline = false,
|
bool hasUnderline = false,
|
||||||
bool hasStrikethrough = false,
|
bool hasStrikethrough = false,
|
||||||
bool hasOutline = true,
|
bool hasOutline = true,
|
||||||
Color outlineColor = Color::BLACK,
|
Color outlineColor = Color(Color::BLACK, 0.5),
|
||||||
double outlineWidth = 1.0,
|
double outlineWidth = 1.0,
|
||||||
int outlineJoin = LineJoin::ROUND
|
int outlineJoin = LineJoin::ROUND
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue