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
99338f48
Commit
99338f48
authored
Aug 25, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 25, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use msi_get_property_int rather than MSI_GetPropertyW.
parent
383e0242
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
18 deletions
+4
-18
dialog.c
dlls/msi/dialog.c
+4
-18
No files found.
dlls/msi/dialog.c
View file @
99338f48
...
...
@@ -2170,27 +2170,11 @@ static MSIRECORD *msi_get_dialog_record( msi_dialog *dialog )
return
rec
;
}
static
void
msi_
get_screen_resolution
(
msi_dialog
*
dialog
,
UINT
*
xres
,
UINT
*
yre
s
)
static
void
msi_
dialog_adjust_dialog_pos
(
msi_dialog
*
dialog
,
MSIRECORD
*
rec
,
LPRECT
po
s
)
{
WCHAR
num
[
10
];
DWORD
sz
=
10
;
static
const
WCHAR
szScreenX
[]
=
{
'S'
,
'c'
,
'r'
,
'e'
,
'e'
,
'n'
,
'X'
,
0
};
static
const
WCHAR
szScreenY
[]
=
{
'S'
,
'c'
,
'r'
,
'e'
,
'e'
,
'n'
,
'Y'
,
0
};
*
xres
=
0
;
*
yres
=
0
;
MSI_GetPropertyW
(
dialog
->
package
,
szScreenX
,
num
,
&
sz
);
*
xres
=
atolW
(
num
);
sz
=
10
;
MSI_GetPropertyW
(
dialog
->
package
,
szScreenY
,
num
,
&
sz
);
*
yres
=
atolW
(
num
);
}
static
void
msi_dialog_adjust_dialog_pos
(
msi_dialog
*
dialog
,
MSIRECORD
*
rec
,
LPRECT
pos
)
{
UINT
xres
,
yres
;
POINT
center
;
SIZE
sz
;
...
...
@@ -2205,7 +2189,9 @@ static void msi_dialog_adjust_dialog_pos( msi_dialog *dialog, MSIRECORD *rec, LP
sz
.
cx
=
msi_dialog_scale_unit
(
dialog
,
sz
.
cx
);
sz
.
cy
=
msi_dialog_scale_unit
(
dialog
,
sz
.
cy
);
msi_get_screen_resolution
(
dialog
,
&
xres
,
&
yres
);
xres
=
msi_get_property_int
(
dialog
->
package
,
szScreenX
,
0
);
yres
=
msi_get_property_int
(
dialog
->
package
,
szScreenY
,
0
);
center
.
x
=
MulDiv
(
center
.
x
,
xres
,
100
);
center
.
y
=
MulDiv
(
center
.
y
,
yres
,
100
);
...
...
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