Skip to content

Commit b51ff05

Browse files
committed
add grayscale
1 parent ed4cae3 commit b51ff05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

D3D11/D3D11Text3D/main.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ void CallOnce() noexcept {
192192
const auto ctx = g_data.d2d_context;
193193
ctx->BeginDraw();
194194
ctx->Clear(D2D1::ColorF(0.f, 0.f, 0.f, 0.f));
195+
ctx->SetTextAntialiasMode(D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE);
195196
ctx->DrawTextLayout({}, g_data.dw_layout, g_data.d2d_brush);
196197
const auto hr = ctx->EndDraw();
197198
}

0 commit comments

Comments
 (0)