src/misc_gui.cpp
changeset 7929 6c9b25842b0f
parent 7922 a7e266f966d9
child 7931 b0a46cd92225
equal deleted inserted replaced
7928:63e18de69e50 7929:6c9b25842b0f
  1160 
  1160 
  1161 				qs->handled = true;
  1161 				qs->handled = true;
  1162 				e.event = WE_ON_EDIT_TEXT_CANCEL;
  1162 				e.event = WE_ON_EDIT_TEXT_CANCEL;
  1163 				parent->wndproc(parent, &e);
  1163 				parent->wndproc(parent, &e);
  1164 			}
  1164 			}
  1165 			CLRBIT(_no_scroll, SCROLL_EDIT);
  1165 			ClrBit(_no_scroll, SCROLL_EDIT);
  1166 			break;
  1166 			break;
  1167 		}
  1167 		}
  1168 }
  1168 }
  1169 
  1169 
  1170 static const Widget _query_string_widgets[] = {
  1170 static const Widget _query_string_widgets[] = {
  1622 		/* pause is only used in single-player, non-editor mode, non menu mode */
  1622 		/* pause is only used in single-player, non-editor mode, non menu mode */
  1623 		if (!_networking && _game_mode != GM_EDITOR && _game_mode != GM_MENU) {
  1623 		if (!_networking && _game_mode != GM_EDITOR && _game_mode != GM_MENU) {
  1624 			DoCommandP(0, 0, 0, NULL, CMD_PAUSE);
  1624 			DoCommandP(0, 0, 0, NULL, CMD_PAUSE);
  1625 		}
  1625 		}
  1626 		FiosFreeSavegameList();
  1626 		FiosFreeSavegameList();
  1627 		CLRBIT(_no_scroll, SCROLL_SAVE);
  1627 		ClrBit(_no_scroll, SCROLL_SAVE);
  1628 		break;
  1628 		break;
  1629 	case WE_RESIZE: {
  1629 	case WE_RESIZE: {
  1630 		/* Widget 2 and 3 have to go with halve speed, make it so obiwan */
  1630 		/* Widget 2 and 3 have to go with halve speed, make it so obiwan */
  1631 		uint diff = e->we.sizing.diff.x / 2;
  1631 		uint diff = e->we.sizing.diff.x / 2;
  1632 		w->widget[2].right += diff;
  1632 		w->widget[2].right += diff;