Hide mouse pointer during credits.
This commit is contained in:
parent
4ef44ed636
commit
713f30ed5e
|
@ -55,7 +55,10 @@ void presentScene(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!app.hideMouse)
|
||||||
|
{
|
||||||
drawMouse();
|
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);
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue