Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
962d5e64
Commit
962d5e64
authored
Mar 31, 2017
by
Huw Davies
Committed by
Alexandre Julliard
Mar 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Don't bother drawing an item if it's outside the items_rect.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
21c5545a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
menu.c
dlls/user32/menu.c
+6
-4
No files found.
dlls/user32/menu.c
View file @
962d5e64
...
...
@@ -1417,6 +1417,12 @@ static void MENU_DrawMenuItem( HWND hwnd, POPUPMENU *menu, HWND hwndOwner, HDC h
return
;
}
TRACE
(
"rect=%s
\n
"
,
wine_dbgstr_rect
(
&
lpitem
->
rect
)
);
rect
=
lpitem
->
rect
;
MENU_AdjustMenuItemRect
(
menu
,
&
rect
);
if
(
!
IntersectRect
(
&
bmprc
,
&
rect
,
&
menu
->
items_rect
))
/* bmprc is used as a dummy */
return
;
SystemParametersInfoW
(
SPI_GETFLATMENU
,
0
,
&
flat_menu
,
0
);
bkgnd
=
(
menuBar
&&
flat_menu
)
?
COLOR_MENUBAR
:
COLOR_MENU
;
...
...
@@ -1444,10 +1450,6 @@ static void MENU_DrawMenuItem( HWND hwnd, POPUPMENU *menu, HWND hwndOwner, HDC h
SetBkColor
(
hdc
,
GetSysColor
(
bkgnd
)
);
}
TRACE
(
"rect=%s
\n
"
,
wine_dbgstr_rect
(
&
lpitem
->
rect
));
rect
=
lpitem
->
rect
;
MENU_AdjustMenuItemRect
(
menu
,
&
rect
);
old_clip
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
if
(
GetClipRgn
(
hdc
,
old_clip
)
<=
0
)
{
...
...
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