1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-25 09:44:02 +00:00

hide the cursor layer when taking screenshot

This commit is contained in:
fgenesis 2023-06-01 20:20:09 +02:00
parent fc76b2de12
commit 76b391e1fc
2 changed files with 6 additions and 7 deletions

View file

@ -3432,12 +3432,13 @@ void DSQ::onMouseInput()
}
//prepare for screenshot or unprepare
void DSQ::prepScreen(bool t)
void DSQ::prepScreen(bool screenshot)
{
if (t)
{
cursor->offset = Vector(2000, 0);
getRenderObjectLayer(LR_CURSOR)->visible = !screenshot;
// TODO: disable minimap layer too (needs MiniMapRender.cpp LR_MINIMAP visibility hack to be removed first)
if (screenshot)
{
if (game->miniMapRender)
game->miniMapRender->offset = Vector(2000,0);
if (fpsText)
@ -3445,8 +3446,6 @@ void DSQ::prepScreen(bool t)
}
else
{
cursor->offset = Vector(0,0);
if (game->miniMapRender)
game->miniMapRender->offset = Vector(0,0);
if (fpsText)

View file

@ -315,7 +315,7 @@ enum Layers
LR_OVERLAY ,
LR_FILEMENU ,
LR_CONFIRM ,
LR_CURSOR ,
LR_CURSOR , /* hidden for screenshot */
LR_SUBTITLES ,
LR_PROGRESS ,
LR_DEBUG_TEXT ,