Skip to content

Commit 715dce3

Browse files
authored
Changes for Mux Acrylic and Reveal fallback is islands (#192)
1 parent 5060a29 commit 715dce3

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

dev/Materials/Acrylic/AcrylicBrush.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,13 @@ winrt::CompositionEffectBrush AcrylicBrush::CreateAcrylicBrushWorker(
601601
}
602602
}
603603

604+
#ifndef BUILD_WINDOWS
605+
if (acrylicBrush)
606+
{
607+
acrylicBrush.Properties().InsertScalar(L"ShouldRenderAsFallbackInIslands", 1.0f);
608+
}
609+
#endif
610+
604611
return acrylicBrush;
605612
}
606613

dev/Materials/Reveal/RevealBrush.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,13 @@ void RevealBrush::CreateRevealBrush()
699699
m_brush = compositor.CreateColorBrush(fallbackColor);
700700
}
701701
}
702+
703+
#ifndef BUILD_WINDOWS
704+
if (m_brush)
705+
{
706+
m_brush.Properties().InsertScalar(L"ShouldRenderAsFallbackInIslands", 1.0f);
707+
}
708+
#endif
702709
}
703710

704711
void RevealBrush::UpdateRevealBrush()

0 commit comments

Comments
 (0)