Hide mouse pointer during credits.

This commit is contained in:
Steve 2016-06-01 09:55:44 +01:00
parent 4ef44ed636
commit 713f30ed5e
3 changed files with 9 additions and 1 deletions

View File

@ -55,7 +55,10 @@ void presentScene(void)
}
}
if (!app.hideMouse)
{
drawMouse();
}
SDL_SetRenderTarget(app.renderer, NULL);
SDL_RenderCopy(app.renderer, app.backBuffer, NULL, NULL);

View File

@ -51,6 +51,8 @@ void initCredits(void)
loadCredits();
app.hideMouse = 1;
endSectionTransition();
playMusic("music/main/Her Violet Eyes.mp3", 0);
@ -74,6 +76,8 @@ static void logic(void)
if (--timeout <= 0)
{
app.hideMouse = 0;
initTitle();
}
}

View File

@ -488,6 +488,7 @@ typedef struct {
int musicVolume;
int soundVolume;
int doTrophyAlerts;
int hideMouse;
Gameplay gameplay;
Mouse mouse;
int keyboard[MAX_KEYBOARD_KEYS];