Mercurial > hg > openttd
changeset 2788:07e0010d5caa draft
(svn r3336) byte -> WindowClass, uint16 -> WindowNumber
author | tron <tron@openttd.org> |
---|---|
date | Sat, 24 Dec 2005 15:01:17 +0000 |
parents | aa94f06eef71 |
children | 032ff2fbf26a |
files | functions.h gui.h network_gui.c window.c window.h |
diffstat | 5 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/functions.h +++ b/functions.h @@ -191,9 +191,9 @@ /* misc functions */ void MarkTileDirty(int x, int y); void MarkTileDirtyByTile(TileIndex tile); -void InvalidateWindow(byte cls, WindowNumber number); -void InvalidateWindowWidget(byte cls, WindowNumber number, byte widget_index); -void InvalidateWindowClasses(byte cls); +void InvalidateWindow(WindowClass cls, WindowNumber number); +void InvalidateWindowWidget(WindowClass cls, WindowNumber number, byte widget_index); +void InvalidateWindowClasses(WindowClass cls); void DeleteWindowById(WindowClass cls, WindowNumber number); void DeleteWindowByClass(WindowClass cls);
--- a/gui.h +++ b/gui.h @@ -126,7 +126,7 @@ /* network gui */ void ShowNetworkGameWindow(void); -void ShowChatWindow(StringID str, StringID caption, int maxlen, int maxwidth, byte window_class, uint16 window_number); +void ShowChatWindow(StringID str, StringID caption, int maxlen, int maxwidth, WindowClass window_class, WindowNumber window_number); /* bridge_gui.c */ void ShowBuildBridgeWindow(uint start, uint end, byte type);
--- a/network_gui.c +++ b/network_gui.c @@ -1397,7 +1397,7 @@ ChatWindowWndProc }; -void ShowChatWindow(StringID str, StringID caption, int maxlen, int maxwidth, byte window_class, uint16 window_number) +void ShowChatWindow(StringID str, StringID caption, int maxlen, int maxwidth, WindowClass window_class, WindowNumber window_number) { Window *w;
--- a/window.c +++ b/window.c @@ -1553,7 +1553,7 @@ return -1; } -void InvalidateWindow(byte cls, WindowNumber number) +void InvalidateWindow(WindowClass cls, WindowNumber number) { const Window* w; @@ -1572,7 +1572,7 @@ SetDirtyBlocks(w->left + wi->left, w->top + wi->top, w->left + wi->right + 1, w->top + wi->bottom + 1); } -void InvalidateWindowWidget(byte cls, WindowNumber number, byte widget_index) +void InvalidateWindowWidget(WindowClass cls, WindowNumber number, byte widget_index) { const Window* w; @@ -1583,7 +1583,7 @@ } } -void InvalidateWindowClasses(byte cls) +void InvalidateWindowClasses(WindowClass cls) { const Window* w;