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
58182409
Commit
58182409
authored
Jan 04, 2001
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 04, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the alignment of the MF_RIGHTJUSTIFY menu items.
parent
40060a13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
+14
-16
menu.c
controls/menu.c
+14
-16
No files found.
controls/menu.c
View file @
58182409
...
...
@@ -1023,7 +1023,7 @@ static void MENU_MenuBarCalcSize( HDC hdc, LPRECT lprect,
/* Parse items until line break or end of menu */
for
(
i
=
start
;
i
<
lppop
->
nItems
;
i
++
,
lpitem
++
)
{
if
((
helpPos
==
-
1
)
&&
(
lpitem
->
fType
&
MF_
HELP
))
helpPos
=
i
;
if
((
helpPos
==
-
1
)
&&
(
lpitem
->
fType
&
MF_
RIGHTJUSTIFY
))
helpPos
=
i
;
if
((
i
!=
start
)
&&
(
lpitem
->
fType
&
(
MF_MENUBREAK
|
MF_MENUBARBREAK
)))
break
;
...
...
@@ -1048,21 +1048,19 @@ static void MENU_MenuBarCalcSize( HDC hdc, LPRECT lprect,
lprect
->
bottom
=
maxY
;
lppop
->
Height
=
lprect
->
bottom
-
lprect
->
top
;
if
(
TWEAK_WineLook
==
WIN31_LOOK
)
{
/* Flush right all magic items and items between the MF_HELP and */
/* the last item (if several lines, only move the last line) */
lpitem
=
&
lppop
->
items
[
lppop
->
nItems
-
1
];
orgY
=
lpitem
->
rect
.
top
;
orgX
=
lprect
->
right
;
for
(
i
=
lppop
->
nItems
-
1
;
i
>=
helpPos
;
i
--
,
lpitem
--
)
{
if
(
!
IS_BITMAP_ITEM
(
lpitem
->
fType
)
&&
((
helpPos
==-
1
)
||
(
helpPos
>
i
)
))
break
;
/* done */
if
(
lpitem
->
rect
.
top
!=
orgY
)
break
;
/* Other line */
if
(
lpitem
->
rect
.
right
>=
orgX
)
break
;
/* Too far right already */
lpitem
->
rect
.
left
+=
orgX
-
lpitem
->
rect
.
right
;
lpitem
->
rect
.
right
=
orgX
;
orgX
=
lpitem
->
rect
.
left
;
}
/* Flush right all items between the MF_RIGHTJUSTIFY and */
/* the last item (if several lines, only move the last line) */
lpitem
=
&
lppop
->
items
[
lppop
->
nItems
-
1
];
orgY
=
lpitem
->
rect
.
top
;
orgX
=
lprect
->
right
;
for
(
i
=
lppop
->
nItems
-
1
;
i
>=
helpPos
;
i
--
,
lpitem
--
)
{
if
(
(
helpPos
==-
1
)
||
(
helpPos
>
i
)
)
break
;
/* done */
if
(
lpitem
->
rect
.
top
!=
orgY
)
break
;
/* Other line */
if
(
lpitem
->
rect
.
right
>=
orgX
)
break
;
/* Too far right already */
lpitem
->
rect
.
left
+=
orgX
-
lpitem
->
rect
.
right
;
lpitem
->
rect
.
right
=
orgX
;
orgX
=
lpitem
->
rect
.
left
;
}
}
...
...
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