window.c
changeset 5380 8ea58542b6e0
parent 5272 a9de3792b481
child 5413 21f75917d589
equal deleted inserted replaced
5379:929378a0014f 5380:8ea58542b6e0
  1612 	}
  1612 	}
  1613 
  1613 
  1614 	if (vp != NULL) {
  1614 	if (vp != NULL) {
  1615 		switch (click) {
  1615 		switch (click) {
  1616 			case 1:
  1616 			case 1:
  1617 				DEBUG(misc, 2) ("cursor: 0x%X (%d)", _cursor.sprite, _cursor.sprite);
  1617 				DEBUG(misc, 2, "Cursor: 0x%X (%d)", _cursor.sprite, _cursor.sprite);
  1618 				if (_thd.place_mode != 0 &&
  1618 				if (_thd.place_mode != 0 &&
  1619 						// query button and place sign button work in pause mode
  1619 						// query button and place sign button work in pause mode
  1620 						_cursor.sprite != SPR_CURSOR_QUERY &&
  1620 						_cursor.sprite != SPR_CURSOR_QUERY &&
  1621 						_cursor.sprite != SPR_CURSOR_SIGN &&
  1621 						_cursor.sprite != SPR_CURSOR_SIGN &&
  1622 						_pause != 0 &&
  1622 						_pause != 0 &&
  1867 	DeleteWindowById(WC_STATUS_BAR, 0);
  1867 	DeleteWindowById(WC_STATUS_BAR, 0);
  1868 }
  1868 }
  1869 
  1869 
  1870 int PositionMainToolbar(Window *w)
  1870 int PositionMainToolbar(Window *w)
  1871 {
  1871 {
  1872 	DEBUG(misc, 1) ("Repositioning Main Toolbar...");
  1872 	DEBUG(misc, 5, "Repositioning Main Toolbar...");
  1873 
  1873 
  1874 	if (w == NULL || w->window_class != WC_MAIN_TOOLBAR) {
  1874 	if (w == NULL || w->window_class != WC_MAIN_TOOLBAR) {
  1875 		w = FindWindowById(WC_MAIN_TOOLBAR, 0);
  1875 		w = FindWindowById(WC_MAIN_TOOLBAR, 0);
  1876 	}
  1876 	}
  1877 
  1877