From d120c8b8553ad8e36a20a63cfe597b2f1eafceef Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 18 Jun 2009 21:03:49 +0000 Subject: Another step on the way to player doll customization. Including some predefined doll settings in dolls.txt, so players can actually use this. TODO: Save choice back into file. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9999 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tilesdl.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/tilesdl.cc') diff --git a/crawl-ref/source/tilesdl.cc b/crawl-ref/source/tilesdl.cc index 22d6f4d1e8..54b9749dc2 100644 --- a/crawl-ref/source/tilesdl.cc +++ b/crawl-ref/source/tilesdl.cc @@ -743,7 +743,12 @@ int TilesFramework::getch_ck() int key = 0; - const unsigned int ticks_per_redraw = 100; + // When moving the mouse via cursor when targeting update more often. + // For beams, the beam drawing already handles this, and when not targeting + // the normal drawing routines handle it. + const unsigned int ticks_per_redraw + = (mouse_control::current_mode() == MOUSE_MODE_TARGET ? 50 : 100); + unsigned int last_redraw_tick = 0; unsigned int res = Options.tile_tooltip_ms; -- cgit v1.2.3-54-g00ecf