[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: [PATCH] comctl32: PBS_MARQUEE Draw only when true for Marquee.
From: "Chao Long" <longchao () uniontech ! com>
Date: 2020-12-29 10:04:45
Message-ID: 202012291804454391420 () uniontech ! com
[Download RAW message or body]
[Attachment #2 (text/plain)]
["0001-comctl32-PBS_MARQUEE-Draw-only-when-true-for-Marquee.patch" (application/octet-stream)]
From d5782e0a7d010ac53f77aef1deab5f4777fc5a22 Mon Sep 17 00:00:00 2001
From: Chao Long <longchao@uniontech.com>
Date: Tue, 29 Dec 2020 17:51:27 +0800
Subject: [PATCH] comctl32: PBS_MARQUEE Draw only when true for Marquee.
Signed-off-by: Chao Long <longchao@uniontech.com>
---
dlls/comctl32/progress.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/progress.c b/dlls/comctl32/progress.c
index 5cf2ccda20f..9ea016f87b9 100644
--- a/dlls/comctl32/progress.c
+++ b/dlls/comctl32/progress.c
@@ -365,7 +365,7 @@ static LRESULT PROGRESS_Draw (PROGRESS_INFO *infoPtr, HDC hdc)
pdi.ledW = get_led_size( infoPtr, dwStyle, &pdi.rect);
pdi.ledGap = get_led_gap( infoPtr );
- if (dwStyle & PBS_MARQUEE)
+ if (dwStyle & PBS_MARQUEE && infoPtr->Marquee)
{
const int ledW = !barSmooth ? (pdi.ledW + pdi.ledGap) : 1;
const int leds = (barSize + ledW - 1) / ledW;
@@ -502,7 +502,7 @@ static UINT PROGRESS_SetPos (PROGRESS_INFO *infoPtr, INT pos)
{
DWORD style = GetWindowLongW(infoPtr->Self, GWL_STYLE);
- if (style & PBS_MARQUEE)
+ if (style & PBS_MARQUEE && infoPtr->Marquee)
{
PROGRESS_UpdateMarquee(infoPtr);
return 1;
--
2.20.1
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic