Nikolay Sivov : comctl32/progress: Set default marquee animation timer to 30 msec.
Alexandre Julliard
julliard at winehq.org
Wed Jun 11 13:36:24 CDT 2014
Module: wine
Branch: master
Commit: 25279d310e90a90c7584111932b014f035c3f203
URL: http://source.winehq.org/git/wine.git/?a=commit;h=25279d310e90a90c7584111932b014f035c3f203
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sat Jun 7 23:29:38 2014 +0400
comctl32/progress: Set default marquee animation timer to 30 msec.
---
dlls/comctl32/progress.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/comctl32/progress.c b/dlls/comctl32/progress.c
index 989c61e..69e9cf8 100644
--- a/dlls/comctl32/progress.c
+++ b/dlls/comctl32/progress.c
@@ -68,6 +68,7 @@ typedef struct
#define LED_GAP 2
#define MARQUEE_LEDS 5
#define ID_MARQUEE_TIMER 1
+#define DEFAULT_MARQUEE_PERIOD 30
/* Helper to obtain size of a progress bar chunk ("led"). */
static inline int get_led_size ( const PROGRESS_INFO *infoPtr, LONG style,
@@ -724,8 +725,9 @@ static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message,
case PBM_SETMARQUEE:
if(wParam != 0)
{
+ UINT period = lParam ? (UINT)lParam : DEFAULT_MARQUEE_PERIOD;
infoPtr->Marquee = TRUE;
- SetTimer(infoPtr->Self, ID_MARQUEE_TIMER, (UINT)lParam, NULL);
+ SetTimer(infoPtr->Self, ID_MARQUEE_TIMER, period, NULL);
}
else
{
More information about the wine-cvs
mailing list