forked from mirror/OpenTTD
(svn r153) -Feature: [1009710] Extra Viewport. In the minimap dropdown menu, open a new viewport to have a quick look at your favorite map-positions. Independent zoom and quick jump to/from viewport (Dribbel)
This commit is contained in:
10
window.c
10
window.c
@@ -2,7 +2,7 @@
|
||||
#include "ttd.h"
|
||||
#include "window.h"
|
||||
#include "gfx.h"
|
||||
#include "viewport.h"
|
||||
#include "viewport.h"
|
||||
#include "console.h"
|
||||
|
||||
void HandleButtonClick(Window *w, byte widget)
|
||||
@@ -574,7 +574,7 @@ Window *FindWindowFromPt(int x, int y)
|
||||
|
||||
|
||||
void InitWindowSystem()
|
||||
{
|
||||
{
|
||||
IConsoleClose();
|
||||
memset(&_windows, 0, sizeof(_windows));
|
||||
_last_window = _windows;
|
||||
@@ -1021,7 +1021,7 @@ void MouseLoop()
|
||||
return;
|
||||
|
||||
if (mousewheel && !(w->flags4 & WF_DISABLE_VP_SCROLL)) {
|
||||
ZoomInOrOutToCursor(mousewheel < 0);
|
||||
ZoomInOrOutToCursorWindow(mousewheel < 0,w);
|
||||
}
|
||||
|
||||
if (click == 1) {
|
||||
@@ -1206,8 +1206,8 @@ void RelocateAllWindows(int neww, int newh)
|
||||
vp->virtual_width = neww << vp->zoom;
|
||||
vp->virtual_height = newh << vp->zoom;
|
||||
continue; // don't modify top,left
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
IConsoleResize();
|
||||
|
||||
if (w->window_class == WC_MAIN_TOOLBAR) {
|
||||
|
Reference in New Issue
Block a user