okay, so it's just vintage(100)+cleartype that doesn't work. Everything else gracefully falls back to grayscale
This commit is contained in:
parent
713f72e1e5
commit
59c193c22a
|
@ -439,6 +439,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation
|
|||
0.0,
|
||||
1.0);
|
||||
|
||||
auto lock = _terminal->LockForWriting();
|
||||
// Update our runtime opacity value
|
||||
Opacity(newOpacity);
|
||||
|
||||
|
@ -450,18 +451,17 @@ namespace winrt::Microsoft::Terminal::Control::implementation
|
|||
// is what the Terminal did prior to 1.12.
|
||||
if (!IsVintageOpacityAvailable())
|
||||
{
|
||||
const auto oldUseAcrylic{ UseAcrylic() };
|
||||
// const auto oldUseAcrylic{ UseAcrylic() };
|
||||
_runtimeUseAcrylic = newOpacity < 1.0;
|
||||
// If they've changed the value of UseAcrylic, then update the
|
||||
// renderer as well.
|
||||
if (oldUseAcrylic != UseAcrylic() && _renderEngine)
|
||||
{
|
||||
// GH#5098: Inform the engine of the new opacity of the default
|
||||
// text background.
|
||||
auto lock = _terminal->LockForWriting();
|
||||
_renderEngine->SetDefaultTextBackgroundOpacity(_correctForTransparency());
|
||||
}
|
||||
// // If they've changed the value of UseAcrylic, then update the
|
||||
// // renderer as well.
|
||||
// if (oldUseAcrylic != UseAcrylic() && _renderEngine)
|
||||
// {
|
||||
// // GH#5098: Inform the engine of the new opacity of the default
|
||||
// // text background.
|
||||
// }
|
||||
}
|
||||
_renderEngine->SetDefaultTextBackgroundOpacity(_correctForTransparency());
|
||||
|
||||
auto eventArgs = winrt::make_self<TransparencyChangedEventArgs>(newOpacity);
|
||||
_TransparencyChangedHandlers(*this, *eventArgs);
|
||||
|
|
Loading…
Reference in a new issue