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
0a25dd46
Commit
0a25dd46
authored
Mar 04, 2004
by
Justin Chevrier
Committed by
Alexandre Julliard
Mar 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move implementation of SysParametersInfo from Ascii to Unicode.
parent
4d6b27ec
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
14 deletions
+19
-14
desktop.c
controls/desktop.c
+18
-13
controls.h
dlls/user/controls.h
+1
-1
sysparams.c
windows/sysparams.c
+0
-0
No files found.
controls/desktop.c
View file @
0a25dd46
...
...
@@ -235,25 +235,30 @@ BOOL WINAPI SetDeskWallPaper( LPCSTR filename )
*
* Set the desktop pattern.
*/
BOOL
DESKTOP_SetPattern
(
LPCSTR
pattern
)
BOOL
DESKTOP_SetPattern
(
LPC
W
STR
pattern
)
{
int
pat
[
8
];
if
(
hbrushPattern
)
DeleteObject
(
hbrushPattern
);
hbrushPattern
=
0
;
memset
(
pat
,
0
,
sizeof
(
pat
)
);
if
(
pattern
&&
sscanf
(
pattern
,
" %d %d %d %d %d %d %d %d"
,
&
pat
[
0
],
&
pat
[
1
],
&
pat
[
2
],
&
pat
[
3
],
&
pat
[
4
],
&
pat
[
5
],
&
pat
[
6
],
&
pat
[
7
]
))
if
(
pattern
)
{
WORD
pattern
[
8
];
HBITMAP
hbitmap
;
int
i
;
for
(
i
=
0
;
i
<
8
;
i
++
)
pattern
[
i
]
=
pat
[
i
]
&
0xffff
;
hbitmap
=
CreateBitmap
(
8
,
8
,
1
,
1
,
(
LPSTR
)
pattern
);
hbrushPattern
=
CreatePatternBrush
(
hbitmap
);
DeleteObject
(
hbitmap
);
char
buffer
[
64
];
WideCharToMultiByte
(
CP_ACP
,
0
,
pattern
,
-
1
,
buffer
,
sizeof
(
buffer
),
NULL
,
NULL
);
if
(
sscanf
(
buffer
,
" %d %d %d %d %d %d %d %d"
,
&
pat
[
0
],
&
pat
[
1
],
&
pat
[
2
],
&
pat
[
3
],
&
pat
[
4
],
&
pat
[
5
],
&
pat
[
6
],
&
pat
[
7
]
))
{
WORD
pattern
[
8
];
HBITMAP
hbitmap
;
int
i
;
for
(
i
=
0
;
i
<
8
;
i
++
)
pattern
[
i
]
=
pat
[
i
]
&
0xffff
;
hbitmap
=
CreateBitmap
(
8
,
8
,
1
,
1
,
(
LPSTR
)
pattern
);
hbrushPattern
=
CreatePatternBrush
(
hbitmap
);
DeleteObject
(
hbitmap
);
}
}
else
hbrushPattern
=
0
;
return
TRUE
;
}
dlls/user/controls.h
View file @
0a25dd46
...
...
@@ -47,7 +47,7 @@ struct builtin_class_descr
/* desktop */
extern
BOOL
DESKTOP_SetPattern
(
LPCSTR
pattern
);
extern
BOOL
DESKTOP_SetPattern
(
LPC
W
STR
pattern
);
/* icon title */
extern
HWND
ICONTITLE_Create
(
HWND
hwnd
);
...
...
windows/sysparams.c
View file @
0a25dd46
This diff is collapsed.
Click to expand it.
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