Add flicker effect to chrome (replaces zooms)

This commit is contained in:
elasota
2020-05-18 03:30:25 -04:00
parent 5c07ce08bb
commit 8135c68c49
11 changed files with 292 additions and 63 deletions

View File

@@ -134,6 +134,9 @@ void OpenMessageWindow (const PLPasStr &title)
mssgWindowExclusiveStack = mssgWindow;
wm->SwapExclusiveWindow(mssgWindowExclusiveStack); // Push exclusive window
if (doZooms)
wm->FlickerWindowIn(mssgWindow, 32);
}
//-------------------------------------------------------------- SetMessageWindowMessage
@@ -166,7 +169,12 @@ void SetMessageWindowMessage (StringPtr message, const PortabilityLayer::RGBACol
void CloseMessageWindow (void)
{
PortabilityLayer::WindowManager::GetInstance()->SwapExclusiveWindow(mssgWindowExclusiveStack); // Pop exclusive window
PortabilityLayer::WindowManager *wm = PortabilityLayer::WindowManager::GetInstance();
if (doZooms)
wm->FlickerWindowOut(mssgWindow, 32);
wm->SwapExclusiveWindow(mssgWindowExclusiveStack); // Pop exclusive window
assert(mssgWindowExclusiveStack == mssgWindow);
mssgWindowExclusiveStack = nullptr;