diff --git a/Aquaria/DSQ.cpp b/Aquaria/DSQ.cpp index bd9c8c9..7965311 100644 --- a/Aquaria/DSQ.cpp +++ b/Aquaria/DSQ.cpp @@ -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) diff --git a/Aquaria/GameEnums.h b/Aquaria/GameEnums.h index c2c06f7..753e6f6 100644 --- a/Aquaria/GameEnums.h +++ b/Aquaria/GameEnums.h @@ -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 ,