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
225c33fe
Commit
225c33fe
authored
Jul 24, 2007
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Aug 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: printdlg: Fix number display in PrintDlgW().
parent
99ebe8b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
printdlg.c
dlls/comdlg32/printdlg.c
+11
-13
No files found.
dlls/comdlg32/printdlg.c
View file @
225c33fe
...
...
@@ -2413,21 +2413,19 @@ _c_size2strA(PageSetupDataA *pda,DWORD size,LPSTR strout) {
}
static
void
_c_size2strW
(
PageSetupDataW
*
pda
,
DWORD
size
,
LPWSTR
strout
)
{
static
const
WCHAR
UNDEF
[]
=
{
'<'
,
'u'
,
'n'
,
'd'
,
'e'
,
'f'
,
'>'
,
0
};
static
const
WCHAR
mm_fmt
[]
=
{
'%'
,
'.'
,
'2'
,
'f'
,
'm'
,
'm'
,
0
};
static
const
WCHAR
in_fmt
[]
=
{
'%'
,
'.'
,
'2'
,
'f'
,
'i'
,
'n'
,
0
};
lstrcpyW
(
strout
,
UNDEF
);
static
const
char
mm_fmt
[]
=
"%.2f mm"
;
static
const
char
in_fmt
[]
=
"%.2f in"
;
char
buf
[
20
];
if
(
pda
->
dlga
->
Flags
&
PSD_INHUNDREDTHSOFMILLIMETERS
)
{
wsprintfW
(
strout
,
mm_fmt
,(
size
*
1
.
0
)
/
100
.
0
);
return
;
}
if
(
pda
->
dlga
->
Flags
&
PSD_INTHOUSANDTHSOFINCHES
)
{
wsprintfW
(
strout
,
in_fmt
,(
size
*
1
.
0
)
/
1000
.
0
)
;
return
;
sprintf
(
buf
,
mm_fmt
,
(
size
*
1
.
0
)
/
100
.
0
);
}
else
if
(
pda
->
dlga
->
Flags
&
PSD_INTHOUSANDTHSOFINCHES
)
{
sprintf
(
buf
,
in_fmt
,
(
size
*
1
.
0
)
/
1000
.
0
);
}
else
{
pda
->
dlga
->
Flags
|=
PSD_INHUNDREDTHSOFMILLIMETERS
;
sprintf
(
buf
,
mm_fmt
,
(
size
*
1
.
0
)
/
100
.
0
)
;
}
pda
->
dlga
->
Flags
|=
PSD_INHUNDREDTHSOFMILLIMETERS
;
wsprintfW
(
strout
,
mm_fmt
,(
size
*
1
.
0
)
/
100
.
0
);
return
;
MultiByteToWideChar
(
CP_ACP
,
0
,
buf
,
-
1
,
strout
,
20
);
}
static
DWORD
...
...
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