Fix default shortcuts from previous commit (in code). Implemented user-definable mouse-click speed and double-keypress speed.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@865 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-06-14 20:15:20 +00:00
parent 8478d29373
commit 69dbed8d04
7 changed files with 48 additions and 12 deletions

View File

@@ -287,7 +287,7 @@ void Button_Select_forecolor(void)
if (color == Fore_color)
{
// Check if it's a double-click
if (time_click - time_previous < 500)
if (time_click - time_previous < Config.Double_click_speed)
{
// Open palette window
Button_Palette();
@@ -3814,7 +3814,7 @@ void Effects_off(void)
void Transparency_set(byte amount)
{
const int doubleclick_delay = 500;
const int doubleclick_delay = Config.Double_key_speed;
static long time_click = 0;
long time_previous;