Skip to content

Commit 2efc20d

Browse files
committed
No pause on deactivated
1 parent 3bde0dd commit 2efc20d

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/GamePlayer.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,6 @@ void CGamePlayer::OnClose()
11661166

11671167
void CGamePlayer::OnActivateApp(bool active)
11681168
{
1169-
static bool wasPlaying = false;
11701169
static bool wasFullscreen = false;
11711170
static bool firstDeActivate = true;
11721171

@@ -1177,9 +1176,6 @@ void CGamePlayer::OnActivateApp(bool active)
11771176
{
11781177
if (m_CKContext)
11791178
{
1180-
if (firstDeActivate)
1181-
wasPlaying = m_CKContext->IsPlaying() == TRUE;
1182-
11831179
if (!m_Config.alwaysHandleInput)
11841180
m_InputManager->Pause(TRUE);
11851181

@@ -1195,18 +1191,12 @@ void CGamePlayer::OnActivateApp(bool active)
11951191
{
11961192
wasFullscreen = false;
11971193
}
1198-
1199-
if (wasPlaying)
1200-
Pause();
12011194
}
12021195
firstDeActivate = false;
12031196
m_State = eFocusLost;
12041197
}
12051198
else
12061199
{
1207-
if (wasPlaying)
1208-
Play();
1209-
12101200
if (wasFullscreen && !firstDeActivate)
12111201
OnGoFullscreen();
12121202

0 commit comments

Comments
 (0)