diff options
author | rubidium <rubidium@openttd.org> | 2008-05-29 06:49:56 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-29 06:49:56 +0000 |
commit | 27bca407de6062b3ac3d522e86d89b1e5c21085c (patch) | |
tree | 36e475cf0450f0f0cf0507bbf3f755dccc35a6cd /src/misc_gui.cpp | |
parent | 7f8f5fa52cb624d9211d61c431bae943f0882cfe (diff) | |
download | openttd-27bca407de6062b3ac3d522e86d89b1e5c21085c.tar.xz |
(svn r13318) -Codechange: move some functions from gui.h/misc_gui.cpp to window_gui.h/window.cpp because they belong there.
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index c28f7ee20..a9b64beeb 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -717,30 +717,6 @@ void CheckRedrawStationCoverage(const Window *w) } } -void SetVScrollCount(Window *w, int num) -{ - w->vscroll.count = num; - num -= w->vscroll.cap; - if (num < 0) num = 0; - if (num < w->vscroll.pos) w->vscroll.pos = num; -} - -void SetVScroll2Count(Window *w, int num) -{ - w->vscroll2.count = num; - num -= w->vscroll2.cap; - if (num < 0) num = 0; - if (num < w->vscroll2.pos) w->vscroll2.pos = num; -} - -void SetHScrollCount(Window *w, int num) -{ - w->hscroll.count = num; - num -= w->hscroll.cap; - if (num < 0) num = 0; - if (num < w->hscroll.pos) w->hscroll.pos = num; -} - /* Delete a character at the caret position in a text buf. * If backspace is set, delete the character before the caret, * else delete the character after it. */ |