summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-04-05 12:30:48 +0000
committersmatz <smatz@openttd.org>2008-04-05 12:30:48 +0000
commitd977461d1004102e19a210b26d5080475aff62f8 (patch)
treeb66c7233dabde3a59d051be755cd8efb4f82f2fc /src
parent5eb5889954e571c4b3d75e572667b867f12835e5 (diff)
downloadopenttd-d977461d1004102e19a210b26d5080475aff62f8.tar.xz
(svn r12579) -Change: reset cursor when the Plant trees GUI is opened
Diffstat (limited to 'src')
-rw-r--r--src/misc_gui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 705d6e9ef..59d3d779c 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -337,6 +337,10 @@ static const PalSpriteID _tree_sprites[] = {
static void BuildTreesWndProc(Window *w, WindowEvent *e)
{
switch (e->event) {
+ case WE_CREATE:
+ ResetObjectToPlace();
+ break;
+
case WE_PAINT: {
DrawWindowWidgets(w);