main_gui.c
changeset 1230 f08094212688
parent 1218 c6a624956ac6
child 1309 4403a69da4f8
equal deleted inserted replaced
1229:f698e29a6908 1230:f08094212688
  2200 		break;
  2200 		break;
  2201 	}
  2201 	}
  2202 	}
  2202 	}
  2203 }
  2203 }
  2204 
  2204 
  2205 void ScrollMainViewport(int x, int y)
  2205 static void ScrollMainViewport(int x, int y)
  2206 {
  2206 {
  2207 	if (_game_mode != GM_MENU) {
  2207 	if (_game_mode != GM_MENU) {
  2208 		Window *w = FindWindowById(WC_MAIN_WINDOW, 0);
  2208 		Window *w = FindWindowById(WC_MAIN_WINDOW, 0);
  2209 		assert(w);
  2209 		assert(w);
  2210 
  2210 
  2248 	{ 0, 0}, // 15:impossible
  2248 	{ 0, 0}, // 15:impossible
  2249 };
  2249 };
  2250 
  2250 
  2251 void HandleKeyScrolling(void)
  2251 void HandleKeyScrolling(void)
  2252 {
  2252 {
  2253 	if (_dirkeys) {
  2253 	if (_dirkeys && _iconsole_win == NULL) {
  2254 		int factor = _shift_pressed ? 50 : 10;
  2254 		int factor = _shift_pressed ? 50 : 10;
  2255 		ScrollMainViewport(scrollamt[_dirkeys][0] * factor, scrollamt[_dirkeys][1] * factor);
  2255 		ScrollMainViewport(scrollamt[_dirkeys][0] * factor, scrollamt[_dirkeys][1] * factor);
  2256 	}
  2256 	}
  2257 }
  2257 }
  2258 
  2258