Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
b585ca0f
Commit
b585ca0f
authored
Jul 26, 2009
by
André Hentschel
Committed by
Alexandre Julliard
Aug 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Stop flicker when drawing themed and draw the correct image smoothly.
parent
b4c5a623
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
21 deletions
+5
-21
progress.c
dlls/comctl32/progress.c
+5
-21
No files found.
dlls/comctl32/progress.c
View file @
b585ca0f
...
...
@@ -263,38 +263,22 @@ static const ProgressDrawProc drawProcClassic[8] = {
static
void
draw_theme_bar_H
(
const
ProgressDrawInfo
*
di
,
int
start
,
int
end
)
{
RECT
r
;
int
right
=
di
->
rect
.
left
+
end
;
r
.
left
=
di
->
rect
.
left
+
start
;
r
.
top
=
di
->
rect
.
top
;
r
.
bottom
=
di
->
rect
.
bottom
;
while
(
r
.
left
<
right
)
{
r
.
right
=
min
(
r
.
left
+
di
->
ledW
,
right
);
DrawThemeBackground
(
di
->
theme
,
di
->
hdc
,
PP_CHUNK
,
0
,
&
r
,
NULL
);
r
.
left
=
r
.
right
;
r
.
right
=
min
(
r
.
left
+
di
->
ledGap
,
right
);
DrawThemeBackground
(
di
->
theme
,
di
->
hdc
,
PP_BAR
,
0
,
&
di
->
bgRect
,
&
r
);
r
.
left
=
r
.
right
;
}
r
.
right
=
di
->
rect
.
left
+
end
;
DrawThemeBackground
(
di
->
theme
,
di
->
hdc
,
PP_CHUNK
,
0
,
&
r
,
NULL
);
}
/* draw themed
horizont
al bar from 'start' to 'end' */
/* draw themed
vertic
al bar from 'start' to 'end' */
static
void
draw_theme_bar_V
(
const
ProgressDrawInfo
*
di
,
int
start
,
int
end
)
{
RECT
r
;
int
top
=
di
->
rect
.
bottom
-
end
;
r
.
left
=
di
->
rect
.
left
;
r
.
right
=
di
->
rect
.
right
;
r
.
bottom
=
di
->
rect
.
bottom
-
start
;
while
(
r
.
bottom
>
top
)
{
r
.
top
=
max
(
r
.
bottom
-
di
->
ledW
,
top
);
DrawThemeBackground
(
di
->
theme
,
di
->
hdc
,
PP_CHUNKVERT
,
0
,
&
r
,
NULL
);
r
.
bottom
=
r
.
top
;
r
.
top
=
max
(
r
.
bottom
-
di
->
ledGap
,
top
);
DrawThemeBackground
(
di
->
theme
,
di
->
hdc
,
PP_BARVERT
,
0
,
&
di
->
bgRect
,
&
r
);
r
.
bottom
=
r
.
top
;
}
r
.
top
=
di
->
rect
.
bottom
-
end
;
DrawThemeBackground
(
di
->
theme
,
di
->
hdc
,
PP_CHUNKVERT
,
0
,
&
r
,
NULL
);
}
/* draw themed horizontal background from 'start' to 'end' */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment