1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00

Windows: patched launch4j to reduce the delay between pollings for the main

window. Fixes #4215
This commit is contained in:
Federico Fissore 2015-11-25 17:11:19 +01:00
parent 0dca80cad3
commit c3fc56f845
2 changed files with 15 additions and 0 deletions

View File

@ -861,6 +861,8 @@
<delete dir="windows/launcher/launch4j"/>
<antcall target="download-${launch4j-download-unpack-target-name}" />
<patch patchfile="windows/launcher.timer.patch" strip="1" dir="windows/launcher/launch4j/"/>
<property name="launch4j.dir" value="windows/launcher/launch4j/" />
<taskdef name="launch4j"
classname="net.sf.launch4j.ant.Launch4jTask"

View File

@ -0,0 +1,13 @@
diff --git a/head_src/guihead/guihead.c b/head_src/guihead/guihead.c
index f0d9935..c6599f0 100644
--- a/head_src/guihead/guihead.c
+++ b/head_src/guihead/guihead.c
@@ -120,7 +120,7 @@ int APIENTRY WinMain(HINSTANCE hInstance,
{
if (splash || stayAlive)
{
- if (!SetTimer (hWnd, ID_TIMER, 1000 /* 1s */, TimerProc))
+ if (!SetTimer (hWnd, ID_TIMER, 100, TimerProc))
{
signalError();
return 1;