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)
} }
} }
drawMouse(); if (!app.hideMouse)
{
drawMouse();
}
SDL_SetRenderTarget(app.renderer, NULL); SDL_SetRenderTarget(app.renderer, NULL);
SDL_RenderCopy(app.renderer, app.backBuffer, NULL, NULL); SDL_RenderCopy(app.renderer, app.backBuffer, NULL, NULL);

View File

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

View File

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