mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-19 09:33:24 +00:00
Using twice the default zoom key for switching to half the default zoom level
A sort of strategic view, very handy and also useful to avoid auto-scrolling
This commit is contained in:
parent
98564517fd
commit
8faf2c26bf
@ -1276,8 +1276,14 @@ void display::set_zoom(int amount)
|
||||
}
|
||||
|
||||
void display::set_default_zoom()
|
||||
{
|
||||
set_zoom(DefaultZoom - zoom_);
|
||||
{
|
||||
if (zoom_ != DefaultZoom) {
|
||||
set_zoom(DefaultZoom - zoom_ );
|
||||
} else {
|
||||
// we are already at the default zoom
|
||||
// so switch to the second default (strategic view)
|
||||
set_zoom(DefaultZoom / 2 - zoom_);
|
||||
}
|
||||
}
|
||||
|
||||
void display::scroll_to_tile(const gamemap::location& loc, SCROLL_TYPE scroll_type, bool check_fogged)
|
||||
|
Loading…
x
Reference in New Issue
Block a user