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
b1f23259
Commit
b1f23259
authored
Aug 28, 2002
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 28, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct some of the system metrics to more closely match Windows
values.
parent
acb308af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
28 deletions
+28
-28
sysmetrics.c
windows/sysmetrics.c
+2
-2
sysparams.c
windows/sysparams.c
+26
-26
No files found.
windows/sysmetrics.c
View file @
b1f23259
...
...
@@ -188,7 +188,7 @@ void SYSMETRICS_Init(void)
sysMetrics
[
SM_CXMIN
]
=
(
TWEAK_WineLook
>
WIN31_LOOK
)
?
112
:
100
;
sysMetrics
[
SM_CYMIN
]
=
(
TWEAK_WineLook
>
WIN31_LOOK
)
?
27
:
28
;
sysMetrics
[
SM_CXSIZE
]
=
sysMetrics
[
SM_CYCAPTION
]
-
2
;
sysMetrics
[
SM_CXSIZE
]
=
sysMetrics
[
SM_CYCAPTION
]
-
1
;
sysMetrics
[
SM_CYSIZE
]
=
sysMetrics
[
SM_CXSIZE
];
sysMetrics
[
SM_CXMINTRACK
]
=
sysMetrics
[
SM_CXMIN
];
sysMetrics
[
SM_CYMINTRACK
]
=
sysMetrics
[
SM_CYMIN
];
...
...
@@ -222,7 +222,7 @@ void SYSMETRICS_Init(void)
sysMetrics
[
SM_CYSMCAPTION
]
=
16
;
sysMetrics
[
SM_CXSMSIZE
]
=
15
;
sysMetrics
[
SM_CYSMSIZE
]
=
sysMetrics
[
SM_CXSMSIZE
];
sysMetrics
[
SM_CXMENUSIZE
]
=
sysMetrics
[
SM_CYMENU
];
sysMetrics
[
SM_CXMENUSIZE
]
=
sysMetrics
[
SM_CYMENU
]
-
1
;
sysMetrics
[
SM_CYMENUSIZE
]
=
sysMetrics
[
SM_CXMENUSIZE
];
/* FIXME: What do these mean? */
...
...
windows/sysparams.c
View file @
b1f23259
...
...
@@ -1053,7 +1053,7 @@ BOOL WINAPI SystemParametersInfoA( UINT uiAction, UINT uiParam,
GetProfileStringA
(
"Desktop"
,
"IconTitleFaceName"
,
lfDefault
.
lfFaceName
,
lpLogFont
->
lfFaceName
,
LF_FACESIZE
);
lpLogFont
->
lfHeight
=
-
GetProfileIntA
(
"Desktop"
,
"IconTitleSize"
,
1
3
);
lpLogFont
->
lfHeight
=
-
GetProfileIntA
(
"Desktop"
,
"IconTitleSize"
,
1
1
);
lpLogFont
->
lfWidth
=
0
;
lpLogFont
->
lfEscapement
=
lpLogFont
->
lfOrientation
=
0
;
lpLogFont
->
lfWeight
=
FW_NORMAL
;
...
...
@@ -1063,7 +1063,7 @@ BOOL WINAPI SystemParametersInfoA( UINT uiAction, UINT uiParam,
lpLogFont
->
lfCharSet
=
lfDefault
.
lfCharSet
;
/* at least 'charset' should not be hard-coded */
lpLogFont
->
lfOutPrecision
=
OUT_DEFAULT_PRECIS
;
lpLogFont
->
lfClipPrecision
=
CLIP_DEFAULT_PRECIS
;
lpLogFont
->
lfPitchAndFamily
=
DEFAULT_PITCH
|
FF_SWISS
;
lpLogFont
->
lfPitchAndFamily
=
DEFAULT_PITCH
;
break
;
}
...
...
@@ -1156,8 +1156,6 @@ BOOL WINAPI SystemParametersInfoA( UINT uiAction, UINT uiParam,
if
(
lpnm
->
cbSize
==
sizeof
(
NONCLIENTMETRICSA
))
{
LPLOGFONTA
lpLogFont
=
&
(
lpnm
->
lfMenuFont
);
/* clear the struct, so we have 'sane' members */
memset
(
(
char
*
)
pvParam
+
sizeof
(
lpnm
->
cbSize
),
...
...
@@ -1166,44 +1164,43 @@ BOOL WINAPI SystemParametersInfoA( UINT uiAction, UINT uiParam,
);
/* initialize geometry entries */
lpnm
->
iBorderWidth
=
-
1
;
/* FIXME */
lpnm
->
iBorderWidth
=
1
;
lpnm
->
iScrollWidth
=
GetSystemMetrics
(
SM_CXVSCROLL
);
lpnm
->
iScrollHeight
=
GetSystemMetrics
(
SM_CYHSCROLL
);
/* caption */
/* size of the normal caption buttons */
lpnm
->
iCaptionWidth
=
GetSystemMetrics
(
SM_CXSIZE
);
lpnm
->
iCaptionHeight
=
lpnm
->
iCaptionWidth
;
lpnm
->
iCaptionHeight
=
GetSystemMetrics
(
SM_CYSIZE
);
/* caption font metrics */
SystemParametersInfoA
(
SPI_GETICONTITLELOGFONT
,
0
,
(
LPVOID
)
&
(
lpnm
->
lfCaptionFont
),
0
);
lpnm
->
lfCaptionFont
.
lfWeight
=
FW_BOLD
;
/* s
mall caption
*/
/* s
ize of the small caption buttons
*/
lpnm
->
iSmCaptionWidth
=
GetSystemMetrics
(
SM_CXSMSIZE
);
lpnm
->
iSmCaptionHeight
=
lpnm
->
iSmCaptionWidth
;
lpnm
->
iSmCaptionHeight
=
GetSystemMetrics
(
SM_CYSMSIZE
);
/* small caption font metrics */
SystemParametersInfoA
(
SPI_GETICONTITLELOGFONT
,
0
,
(
LPVOID
)
&
(
lpnm
->
lfSmCaptionFont
),
0
);
/* menus, FIXME: names of wine.conf entries are bogus */
lpnm
->
iMenuWidth
=
GetProfileIntA
(
"Desktop"
,
"MenuWidth"
,
13
);
/* size of the menu buttons
*/
lpnm
->
iMenu
Height
=
GetProfileIntA
(
"Desktop"
,
"MenuHeight"
,
(
TWEAK_WineLook
>
WIN31_LOOK
)
?
13
:
27
);
/* size of the menu (MDI) buttons
*/
lpnm
->
iMenu
Width
=
GetSystemMetrics
(
SM_CXMENUSIZE
);
lpnm
->
iMenuHeight
=
GetSystemMetrics
(
SM_CYMENUSIZE
);
/* menu font metrics */
SystemParametersInfoA
(
SPI_GETICONTITLELOGFONT
,
0
,
(
LPVOID
)
&
(
lpnm
->
lfMenuFont
),
0
);
GetProfileStringA
(
"Desktop"
,
"MenuFont"
,
(
TWEAK_WineLook
>
WIN31_LOOK
)
?
lpnm
->
lfCaptionFont
.
lfFaceName
:
"System"
,
lpLogFont
->
lfFaceName
,
LF_FACESIZE
);
lpLogFont
->
lfHeight
=
-
GetProfileIntA
(
"Desktop"
,
"MenuFontSize"
,
13
);
lpLogFont
->
lfWidth
=
0
;
lpLogFont
->
lfEscapement
=
lpLogFont
->
lfOrientation
=
0
;
lpLogFont
->
lfWeight
=
(
TWEAK_WineLook
>
WIN31_LOOK
)
?
FW_NORMAL
:
FW_BOLD
;
lpLogFont
->
lfItalic
=
FALSE
;
lpLogFont
->
lfStrikeOut
=
FALSE
;
lpLogFont
->
lfUnderline
=
FALSE
;
lpLogFont
->
lfCharSet
=
lpnm
->
lfCaptionFont
.
lfCharSet
;
lpLogFont
->
lfOutPrecision
=
OUT_DEFAULT_PRECIS
;
lpLogFont
->
lfClipPrecision
=
CLIP_DEFAULT_PRECIS
;
lpLogFont
->
lfPitchAndFamily
=
DEFAULT_PITCH
|
FF_SWISS
;
lpnm
->
lfMenuFont
.
lfFaceName
,
LF_FACESIZE
);
lpnm
->
lfMenuFont
.
lfHeight
=
-
GetProfileIntA
(
"Desktop"
,
"MenuFontSize"
,
11
);
lpnm
->
lfMenuFont
.
lfWeight
=
(
TWEAK_WineLook
>
WIN31_LOOK
)
?
FW_NORMAL
:
FW_BOLD
;
/* status bar font metrics */
SystemParametersInfoA
(
SPI_GETICONTITLELOGFONT
,
0
,
(
LPVOID
)
&
(
lpnm
->
lfStatusFont
),
0
);
/* message font metrics */
SystemParametersInfoA
(
SPI_GETICONTITLELOGFONT
,
0
,
(
LPVOID
)
&
(
lpnm
->
lfMessageFont
),
0
);
}
...
...
@@ -1587,7 +1584,10 @@ BOOL WINAPI SystemParametersInfoA( UINT uiAction, UINT uiParam,
WINE_SPI_FIXME
(
SPI_SETCURSORS
);
/* 87 WINVER >= 0x400 */
WINE_SPI_FIXME
(
SPI_SETICONS
);
/* 88 WINVER >= 0x400 */
WINE_SPI_FIXME
(
SPI_GETDEFAULTINPUTLANG
);
/* 89 WINVER >= 0x400 */
case
SPI_GETDEFAULTINPUTLANG
:
/* 89 WINVER >= 0x400 */
ret
=
GetKeyboardLayout
(
0
);
break
;
WINE_SPI_FIXME
(
SPI_SETDEFAULTINPUTLANG
);
/* 90 WINVER >= 0x400 */
WINE_SPI_FIXME
(
SPI_SETLANGTOGGLE
);
/* 91 WINVER >= 0x400 */
...
...
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