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
b7a4f465
Commit
b7a4f465
authored
Apr 22, 1999
by
Gerard Patel
Committed by
Alexandre Julliard
Apr 22, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed syscolors for win 3.1.
parent
8228bd67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
syscolor.c
windows/syscolor.c
+5
-5
No files found.
windows/syscolor.c
View file @
b7a4f465
...
@@ -116,18 +116,19 @@ void SYSCOLOR_Init(void)
...
@@ -116,18 +116,19 @@ void SYSCOLOR_Init(void)
int
i
,
r
,
g
,
b
;
int
i
,
r
,
g
,
b
;
const
char
*
const
*
p
;
const
char
*
const
*
p
;
char
buffer
[
100
];
char
buffer
[
100
];
BOOL
bOk
=
FALSE
,
bNoReg
=
FALSE
;
HKEY
hKey
;
DWORD
dwDataSize
=
32
;
p
=
(
TWEAK_WineLook
==
WIN31_LOOK
)
?
DefSysColors
:
DefSysColors95
;
p
=
(
TWEAK_WineLook
==
WIN31_LOOK
)
?
DefSysColors
:
DefSysColors95
;
/* first, try to read the values from the registry */
/* first, try to read the values from the registry */
if
(
VERSION_GetVersion
()
!=
WIN31
)
if
(
VERSION_GetVersion
()
!=
WIN31
)
{
HKEY
hKey
;
{
DWORD
dwDataSize
=
32
;
BOOL
bOk
=
FALSE
,
bNoReg
=
FALSE
;
if
(
RegCreateKeyExA
(
HKEY_CURRENT_USER
,
"Control Panel
\\
Colors"
,
0
,
0
,
0
,
KEY_ALL_ACCESS
,
0
,
&
hKey
,
0
))
if
(
RegCreateKeyExA
(
HKEY_CURRENT_USER
,
"Control Panel
\\
Colors"
,
0
,
0
,
0
,
KEY_ALL_ACCESS
,
0
,
&
hKey
,
0
))
bNoReg
=
TRUE
;
bNoReg
=
TRUE
;
}
for
(
i
=
0
;
i
<
NUM_SYS_COLORS
;
i
++
)
for
(
i
=
0
;
i
<
NUM_SYS_COLORS
;
i
++
)
{
bOk
=
FALSE
;
{
bOk
=
FALSE
;
...
@@ -154,7 +155,6 @@ void SYSCOLOR_Init(void)
...
@@ -154,7 +155,6 @@ void SYSCOLOR_Init(void)
}
}
if
(
!
bNoReg
)
if
(
!
bNoReg
)
RegCloseKey
(
hKey
);
RegCloseKey
(
hKey
);
}
}
}
...
...
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