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
069f5b90
Commit
069f5b90
authored
Apr 26, 2007
by
Kevin Koltzau
Committed by
Alexandre Julliard
Apr 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Draw menu item bitmaps in the correct location when the scroll arrows are active.
parent
160f1c35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
menu.c
dlls/user32/menu.c
+3
-3
No files found.
dlls/user32/menu.c
View file @
069f5b90
...
...
@@ -1515,7 +1515,7 @@ static void MENU_DrawMenuItem( HWND hwnd, HMENU hmenu, HWND hwndOwner, HDC hdc,
if
(
menuBar
&&
!
(
lpitem
->
hbmpItem
==
HBMMENU_CALLBACK
))
bmprc
.
top
=
0
;
else
bmprc
.
top
=
(
lpitem
->
rect
.
bottom
-
lpitem
->
rect
.
top
-
bmprc
.
top
=
(
rect
.
bottom
-
rect
.
top
-
lpitem
->
bmpsize
.
cy
)
/
2
;
bmprc
.
bottom
=
bmprc
.
top
+
lpitem
->
bmpsize
.
cy
;
}
...
...
@@ -1570,7 +1570,7 @@ static void MENU_DrawMenuItem( HWND hwnd, HMENU hmenu, HWND hwndOwner, HDC hdc,
!
(
checked
&&
(
menu
->
dwStyle
&
MNS_CHECKORBMP
)))
{
POINT
origorg
;
/* some applications make this assumption on the DC's origin */
SetViewportOrgEx
(
hdc
,
lpitem
->
rect
.
left
,
lpitem
->
rect
.
top
,
&
origorg
);
SetViewportOrgEx
(
hdc
,
rect
.
left
,
rect
.
top
,
&
origorg
);
MENU_DrawBitmapItem
(
hdc
,
lpitem
,
&
bmprc
,
hmenu
,
hwndOwner
,
odaction
,
FALSE
);
SetViewportOrgEx
(
hdc
,
origorg
.
x
,
origorg
.
y
,
NULL
);
...
...
@@ -1588,7 +1588,7 @@ static void MENU_DrawMenuItem( HWND hwnd, HMENU hmenu, HWND hwndOwner, HDC hdc,
{
/* Draw the bitmap */
POINT
origorg
;
SetViewportOrgEx
(
hdc
,
lpitem
->
rect
.
left
,
lpitem
->
rect
.
top
,
&
origorg
);
SetViewportOrgEx
(
hdc
,
rect
.
left
,
rect
.
top
,
&
origorg
);
MENU_DrawBitmapItem
(
hdc
,
lpitem
,
&
bmprc
,
hmenu
,
hwndOwner
,
odaction
,
menuBar
);
SetViewportOrgEx
(
hdc
,
origorg
.
x
,
origorg
.
y
,
NULL
);
...
...
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