(svn r7094) -Codechange: Get rid of the window-specific code in DoZoomInOutWindow (enable, disable

buttons depending on calling window, game-mode); handle it by broadcasting messages
 to the calling window, because that knows how and what buttons to set.
This commit is contained in:
Darkvater
2006-11-07 13:06:02 +00:00
parent 501fcb3465
commit 3a2c773411
5 changed files with 42 additions and 40 deletions

View File

@@ -31,6 +31,7 @@ enum {
bool DoZoomInOutWindow(int how, Window *w);
void ZoomInOrOutToCursorWindow(bool in, Window * w);
Point GetTileZoomCenterWindow(bool in, Window * w);
void HandleZoomMessage(Window *w, const ViewPort *vp, byte widget_zoom_in, byte widget_zoom_out);
void OffsetGroundSprite(int x, int y);