(svn r11473) -Codechange: Replace two more instances of widget/smalltype numbers by enum(-a) values
authorbelugas
Mon, 19 Nov 2007 01:16:53 +0000
changeset 7920 fb0a7e7ad54e
parent 7919 a8b61d51832e
child 7921 3437fdd5c0a8
(svn r11473) -Codechange: Replace two more instances of widget/smalltype numbers by enum(-a) values
src/smallmap_gui.cpp
--- a/src/smallmap_gui.cpp	Mon Nov 19 00:57:56 2007 +0000
+++ b/src/smallmap_gui.cpp	Mon Nov 19 01:16:53 2007 +0000
@@ -941,8 +941,8 @@
 	w = AllocateWindowDescFront(&_smallmap_desc, 0);
 	if (w == NULL) return;
 
-	LowerWindowWidget(w, _smallmap_type + 5);
-	SetWindowWidgetLoweredState(w, 12, _smallmap_show_towns);
+	LowerWindowWidget(w, _smallmap_type + SMT_OWNER);
+	SetWindowWidgetLoweredState(w, SM_WIDGET_TOGGLETOWNNAME, _smallmap_show_towns);
 
 	SmallMapCenterOnCurrentPos(w);
 }