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
3069ad44
Commit
3069ad44
authored
Mar 28, 2010
by
Mikhail Maroukhine
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Fix compiler warnings with flag -Wcast-qual.
parent
2a897237
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
dib.c
dlls/winex11.drv/dib.c
+2
-1
ime.c
dlls/winex11.drv/ime.c
+2
-2
settings.c
dlls/winex11.drv/settings.c
+1
-1
No files found.
dlls/winex11.drv/dib.c
View file @
3069ad44
...
...
@@ -4049,7 +4049,8 @@ INT CDECL X11DRV_SetDIBits( X11DRV_PDEVICE *physDev, HBITMAP hbitmap, UINT start
{
unsigned
int
srcwidthb
=
ds
.
dsBm
.
bmWidthBytes
;
int
dstwidthb
=
X11DRV_DIB_GetDIBWidthBytes
(
width
,
descr
.
infoBpp
);
LPBYTE
dbits
=
physBitmap
->
base
,
sbits
=
(
LPBYTE
)
bits
+
(
startscan
*
srcwidthb
);
LPBYTE
dbits
=
physBitmap
->
base
;
const
BYTE
*
sbits
=
(
const
BYTE
*
)
bits
+
(
startscan
*
srcwidthb
);
int
widthb
;
UINT
y
;
...
...
dlls/winex11.drv/ime.c
View file @
3069ad44
...
...
@@ -189,7 +189,7 @@ static int updateField(DWORD origLen, DWORD origOffset, DWORD currentOffset,
return
currentOffset
;
}
static
HIMCC
updateCompStr
(
HIMCC
old
,
LPWSTR
compstr
,
DWORD
len
)
static
HIMCC
updateCompStr
(
HIMCC
old
,
LP
C
WSTR
compstr
,
DWORD
len
)
{
/* we need to make sure the CompStr, CompClaus and CompAttr fields are all
* set and correct */
...
...
@@ -923,7 +923,7 @@ BOOL WINAPI ImeSetCompositionString(HIMC hIMC, DWORD dwIndex, LPCVOID lpComp,
if
(
dwCompLen
&&
lpComp
)
{
newCompStr
=
updateCompStr
(
lpIMC
->
hCompStr
,
(
LPWSTR
)
lpComp
,
dwCompLen
/
sizeof
(
WCHAR
));
newCompStr
=
updateCompStr
(
lpIMC
->
hCompStr
,
(
LP
C
WSTR
)
lpComp
,
dwCompLen
/
sizeof
(
WCHAR
));
ImmDestroyIMCC
(
lpIMC
->
hCompStr
);
lpIMC
->
hCompStr
=
newCompStr
;
...
...
dlls/winex11.drv/settings.c
View file @
3069ad44
...
...
@@ -243,7 +243,7 @@ static BOOL write_registry_settings(const DEVMODEW *dm)
return
FALSE
;
#define set_value(name, data) \
if (RegSetValueExA(hkey, name, 0, REG_DWORD, (
LPBYTE
)(data), sizeof(DWORD))) \
if (RegSetValueExA(hkey, name, 0, REG_DWORD, (
const BYTE*
)(data), sizeof(DWORD))) \
ret = FALSE
set_value
(
"DefaultSettings.BitsPerPel"
,
&
dm
->
dmBitsPerPel
);
...
...
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