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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user