diff options
author | bjarni <bjarni@openttd.org> | 2007-01-24 14:32:20 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2007-01-24 14:32:20 +0000 |
commit | 8c098db7a81546f3154b845e123bfcb2731d4f35 (patch) | |
tree | 3a5b9fe40052ed1cff61cb6dbf3a984c0ecf84f0 /src/depot_gui.cpp | |
parent | 0996de79df839647968838498d1953319705606d (diff) | |
download | openttd-8c098db7a81546f3154b845e123bfcb2731d4f35.tar.xz |
(svn r8390) -Codechange (r8384): Rewrote ResizeButtons()
Now it only works on first and last widget to resize
It now works with offsets correctly (no longer assumes the left is 0)
It's no longer needed to have a widget right of the ones you resize
Can handle any number of widgets
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 4b5166da3..e4163fcf2 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -497,7 +497,7 @@ static void ClonePlaceObj(const Window *w) static void ResizeDepotButtons(Window *w) { - ResizeButtons(w, DEPOT_WIDGET_BUILD, DEPOT_WIDGET_VEHICLE_LIST); + ResizeButtons(w, DEPOT_WIDGET_BUILD, DEPOT_WIDGET_LOCATION); if (WP(w, depot_d).type == VEH_Train) { /* Divide the size of DEPOT_WIDGET_SELL into two equally big buttons so DEPOT_WIDGET_SELL and DEPOT_WIDGET_SELL_CHAIN will get the same size. |