|
|
@ -1991,7 +1991,7 @@ df::coord Gui::getCursorPos()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Gui::recenterViewscreen(int32_t x, int32_t y, int32_t z, df::report_zoom_type zoom)
|
|
|
|
void Gui::recenterViewscreen(int32_t x, int32_t y, int32_t z, df::report_zoom_type zoom)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Reverse-engineered from DF announcement code, also used when scrolling
|
|
|
|
// Reverse-engineered from DF announcement code, also used when scrolling
|
|
|
|
|
|
|
|
|
|
|
|
auto dims = getDwarfmodeViewDims();
|
|
|
|
auto dims = getDwarfmodeViewDims();
|
|
|
@ -2032,7 +2032,7 @@ void Gui::recenterViewscreen(int32_t x, int32_t y, int32_t z, df::report_zoom_ty
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Gui::pauseRecenter(int32_t x, int32_t y, int32_t z, bool pause)
|
|
|
|
void Gui::pauseRecenter(int32_t x, int32_t y, int32_t z, bool pause)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Reverse-engineered from DF announcement code
|
|
|
|
// Reverse-engineered from DF announcement code
|
|
|
|
|
|
|
|
|
|
|
|
if (*gamemode != game_mode::DWARF)
|
|
|
|
if (*gamemode != game_mode::DWARF)
|
|
|
|