diff --git a/modules/juce_graphics/native/juce_Direct2DResources_windows.cpp b/modules/juce_graphics/native/juce_Direct2DResources_windows.cpp index 58e7091dcf..96b3c4fcb0 100644 --- a/modules/juce_graphics/native/juce_Direct2DResources_windows.cpp +++ b/modules/juce_graphics/native/juce_Direct2DResources_windows.cpp @@ -347,7 +347,7 @@ public: if (const auto hr = result.deviceContext->CreateSolidColorBrush (D2D1::ColorF (0.0f, 0.0f, 0.0f, 1.0f), result.colourBrush.resetAndGetPointerAddress()); - FAILED (hr)) + FAILED (hr)) { jassertfalse; return {}; diff --git a/modules/juce_graphics/native/juce_DirectX_windows.h b/modules/juce_graphics/native/juce_DirectX_windows.h index 720b0bd8b4..a4b72466dc 100644 --- a/modules/juce_graphics/native/juce_DirectX_windows.h +++ b/modules/juce_graphics/native/juce_DirectX_windows.h @@ -348,21 +348,7 @@ struct Direct2DDeviceContext return {}; } - const auto textAntialiasing = [&] - { - BOOL smoothingEnabled{}; - SystemParametersInfo (SPI_GETFONTSMOOTHING, 0, &smoothingEnabled, 0); - - if (! smoothingEnabled) - return D2D1_TEXT_ANTIALIAS_MODE_ALIASED; - - UINT smoothingKind{}; - SystemParametersInfo (SPI_GETFONTSMOOTHINGTYPE, 0, &smoothingKind, 0); - return smoothingKind == FE_FONTSMOOTHINGCLEARTYPE ? D2D1_TEXT_ANTIALIAS_MODE_CLEARTYPE - : D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE; - }(); - - result->SetTextAntialiasMode (textAntialiasing); + result->SetTextAntialiasMode (D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE); result->SetAntialiasMode (D2D1_ANTIALIAS_MODE_PER_PRIMITIVE); result->SetUnitMode (D2D1_UNIT_MODE_PIXELS);