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
ec1c9492
Commit
ec1c9492
authored
Nov 25, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Remove some superfluous casts.
parent
c75a143f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
brush.c
dlls/gdi32/brush.c
+2
-2
gdi16.c
dlls/gdi32/gdi16.c
+3
-3
metafile16.c
dlls/gdi32/metafile16.c
+2
-2
printdrv16.c
dlls/gdi32/printdrv16.c
+1
-1
bitmap.c
dlls/gdi32/tests/bitmap.c
+2
-2
No files found.
dlls/gdi32/brush.c
View file @
ec1c9492
...
...
@@ -73,7 +73,7 @@ static HGLOBAL16 dib_copy(const BITMAPINFO *info, UINT coloruse)
{
return
0
;
}
newInfo
=
(
BITMAPINFO
*
)
GlobalLock16
(
hmem
);
newInfo
=
GlobalLock16
(
hmem
);
memcpy
(
newInfo
,
info
,
size
);
GlobalUnlock16
(
hmem
);
return
hmem
;
...
...
@@ -134,7 +134,7 @@ HBRUSH WINAPI CreateBrushIndirect( const LOGBRUSH * brush )
HGLOBAL
h
=
(
HGLOBAL
)
ptr
->
logbrush
.
lbHatch
;
ptr
->
logbrush
.
lbStyle
=
BS_DIBPATTERN
;
if
(
!
(
bmi
=
(
BITMAPINFO
*
)
GlobalLock
(
h
)))
goto
error
;
if
(
!
(
bmi
=
GlobalLock
(
h
)))
goto
error
;
ptr
->
logbrush
.
lbHatch
=
dib_copy
(
bmi
,
ptr
->
logbrush
.
lbColor
);
GlobalUnlock
(
h
);
if
(
!
ptr
->
logbrush
.
lbHatch
)
goto
error
;
...
...
dlls/gdi32/gdi16.c
View file @
ec1c9492
...
...
@@ -752,7 +752,7 @@ INT16 WINAPI Escape16( HDC16 hdc, INT16 escape, INT16 in_count, SEGPTR in_data,
case
DRAWPATTERNRECT
:
{
DRAWPATRECT
pr
;
DRAWPATRECT16
*
pr16
=
(
DRAWPATRECT16
*
)
MapSL
(
in_data
);
DRAWPATRECT16
*
pr16
=
MapSL
(
in_data
);
pr
.
ptPosition
.
x
=
pr16
->
ptPosition
.
x
;
pr
.
ptPosition
.
y
=
pr16
->
ptPosition
.
y
;
...
...
@@ -1770,9 +1770,9 @@ void WINAPI PlayMetaFileRecord16( HDC16 hdc, HANDLETABLE16 *ht, METARECORD *mr,
HANDLETABLE
*
ht32
=
HeapAlloc
(
GetProcessHeap
(),
0
,
handles
*
sizeof
(
*
ht32
)
);
unsigned
int
i
;
for
(
i
=
0
;
i
<
handles
;
i
++
)
ht32
->
objectHandle
[
i
]
=
(
HGDIOBJ
)(
ULONG_PTR
)
ht
->
objectHandle
[
i
]
;
for
(
i
=
0
;
i
<
handles
;
i
++
)
ht32
->
objectHandle
[
i
]
=
HGDIOBJ_32
(
ht
->
objectHandle
[
i
])
;
PlayMetaFileRecord
(
HDC_32
(
hdc
),
ht32
,
mr
,
handles
);
for
(
i
=
0
;
i
<
handles
;
i
++
)
ht
->
objectHandle
[
i
]
=
LOWORD
(
ht32
->
objectHandle
[
i
]);
for
(
i
=
0
;
i
<
handles
;
i
++
)
ht
->
objectHandle
[
i
]
=
HGDIOBJ_16
(
ht32
->
objectHandle
[
i
]);
HeapFree
(
GetProcessHeap
(),
0
,
ht32
);
}
...
...
dlls/gdi32/metafile16.c
View file @
ec1c9492
...
...
@@ -244,7 +244,7 @@ BOOL16 WINAPI EnumMetaFile16( HDC16 hdc16, HMETAFILE16 hmf,
SelectObject
(
hdc
,
hPen
);
SelectObject
(
hdc
,
hFont
);
ht
=
(
HANDLETABLE16
*
)
GlobalLock16
(
hHT
);
ht
=
GlobalLock16
(
hHT
);
/* free objects in handle table */
for
(
i
=
0
;
i
<
mh
->
mtNoObjects
;
i
++
)
...
...
@@ -309,5 +309,5 @@ HMETAFILE16 WINAPI SetMetaFileBitsBetter16( HMETAFILE16 hMeta )
{
if
(
IsValidMetaFile16
(
hMeta
)
)
return
GlobalReAlloc16
(
hMeta
,
0
,
GMEM_SHARE
|
GMEM_NODISCARD
|
GMEM_MODIFY
);
return
(
HMETAFILE16
)
0
;
return
0
;
}
dlls/gdi32/printdrv16.c
View file @
ec1c9492
...
...
@@ -357,7 +357,7 @@ static int CreateSpoolFile(LPCSTR pszOutput)
signal
(
SIGPIPE
,
SIG_DFL
);
signal
(
SIGCHLD
,
SIG_DFL
);
execl
(
"/bin/sh"
,
"/bin/sh"
,
"-c"
,
psCmdP
,
(
char
*
)
0
);
execl
(
"/bin/sh"
,
"/bin/sh"
,
"-c"
,
psCmdP
,
NULL
);
_exit
(
1
);
}
...
...
dlls/gdi32/tests/bitmap.c
View file @
ec1c9492
...
...
@@ -2212,11 +2212,11 @@ static void test_clipping(void)
bmpDst
=
CreateDIBSection
(
hdcDst
,
&
bmpinfo
,
DIB_RGB_COLORS
,
&
bits
,
NULL
,
0
);
ok
(
bmpDst
!=
NULL
,
"Couldn't create destination bitmap
\n
"
);
oldDst
=
(
HBITMAP
)
SelectObject
(
hdcDst
,
bmpDst
);
oldDst
=
SelectObject
(
hdcDst
,
bmpDst
);
bmpSrc
=
CreateDIBSection
(
hdcSrc
,
&
bmpinfo
,
DIB_RGB_COLORS
,
&
bits
,
NULL
,
0
);
ok
(
bmpSrc
!=
NULL
,
"Couldn't create source bitmap
\n
"
);
oldSrc
=
(
HBITMAP
)
SelectObject
(
hdcSrc
,
bmpSrc
);
oldSrc
=
SelectObject
(
hdcSrc
,
bmpSrc
);
result
=
BitBlt
(
hdcDst
,
0
,
0
,
100
,
100
,
hdcSrc
,
100
,
100
,
SRCCOPY
);
ok
(
result
,
"BitBlt failed
\n
"
);
...
...
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