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
d0d4c74e
Commit
d0d4c74e
authored
Jan 05, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Remove unneeded casts.
parent
35d3f81e
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
13 deletions
+11
-13
brush.c
dlls/gdi32/brush.c
+1
-1
dib.c
dlls/gdi32/dib.c
+4
-4
enhmetafile.c
dlls/gdi32/enhmetafile.c
+2
-2
freetype.c
dlls/gdi32/freetype.c
+1
-1
metafile.c
dlls/gdi32/metafile.c
+1
-1
metafile16.c
dlls/gdi32/metafile16.c
+1
-3
printdrv.c
dlls/gdi32/printdrv.c
+1
-1
No files found.
dlls/gdi32/brush.c
View file @
d0d4c74e
...
...
@@ -471,7 +471,7 @@ BOOL16 WINAPI SetSolidBrush16(HBRUSH16 hBrush, COLORREF newColor )
BRUSHOBJ
*
brushPtr
;
BOOL16
res
=
FALSE
;
TRACE
(
"(hBrush %04x, newColor %08x)
\n
"
,
hBrush
,
(
DWORD
)
newColor
);
TRACE
(
"(hBrush %04x, newColor %08x)
\n
"
,
hBrush
,
newColor
);
if
(
!
(
brushPtr
=
(
BRUSHOBJ
*
)
GDI_GetObjPtr
(
HBRUSH_32
(
hBrush
),
BRUSH_MAGIC
)))
return
FALSE
;
...
...
dlls/gdi32/dib.c
View file @
d0d4c74e
...
...
@@ -832,7 +832,7 @@ INT WINAPI GetDIBits(
*
dstbits
++
=
(
BYTE
)(((
val
>>
2
)
&
0xf8
)
|
((
val
>>
7
)
&
0x07
));
*
dstbits
++
=
(
BYTE
)(((
val
>>
7
)
&
0xf8
)
|
((
val
>>
12
)
&
0x07
));
}
dstbits
=
(
LPBYTE
)(
dbits
+=
dstwidthb
)
;
dstbits
=
dbits
+=
dstwidthb
;
srcbits
=
(
LPWORD
)(
sbits
+=
srcwidthb
);
}
}
...
...
@@ -848,7 +848,7 @@ INT WINAPI GetDIBits(
case
32
:
/* 32 bpp srcDIB -> 24 bpp dstDIB */
{
LPBYTE
srcbits
=
(
LPBYTE
)
sbits
;
LPBYTE
srcbits
=
sbits
;
width
=
min
(
srcwidth
,
dstwidth
);
for
(
y
=
0
;
y
<
lines
;
y
++
)
{
...
...
@@ -857,8 +857,8 @@ INT WINAPI GetDIBits(
*
dstbits
++
=
*
srcbits
++
;
*
dstbits
++
=
*
srcbits
++
;
}
dstbits
=
(
LPBYTE
)(
dbits
+=
dstwidthb
)
;
srcbits
=
(
LPBYTE
)(
sbits
+=
srcwidthb
)
;
dstbits
=
dbits
+=
dstwidthb
;
srcbits
=
sbits
+=
srcwidthb
;
}
}
break
;
...
...
dlls/gdi32/enhmetafile.c
View file @
d0d4c74e
...
...
@@ -2545,7 +2545,7 @@ static INT CALLBACK cbEnhPaletteCopy( HDC a,
/* Update the passed data as a return code */
info
->
lpPe
=
NULL
;
/* Palettes were copied! */
info
->
cEntries
=
(
UINT
)
dwNumPalToCopy
;
info
->
cEntries
=
dwNumPalToCopy
;
return
FALSE
;
/* That's all we need */
}
...
...
@@ -2576,7 +2576,7 @@ UINT WINAPI GetEnhMetaFilePaletteEntries( HENHMETAFILE hEmf,
if
(
enhHeader
->
nPalEntries
==
0
)
return
0
;
/* Is the user requesting the number of palettes? */
if
(
lpPe
==
NULL
)
return
(
UINT
)
enhHeader
->
nPalEntries
;
if
(
lpPe
==
NULL
)
return
enhHeader
->
nPalEntries
;
/* Copy cEntries worth of PALETTEENTRY structs into the buffer */
infoForCallBack
.
cEntries
=
cEntries
;
...
...
dlls/gdi32/freetype.c
View file @
d0d4c74e
...
...
@@ -3291,7 +3291,7 @@ static void GetEnumStructs(Face *face, LPENUMLOGFONTEXW pelf,
if
(
size
)
{
potm
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
WineEngGetOutlineTextMetrics
(
font
,
size
,
potm
);
ptm
=
(
TEXTMETRICW
*
)
&
potm
->
otmTextMetrics
;
ptm
=
&
potm
->
otmTextMetrics
;
}
else
{
WineEngGetTextMetrics
(
font
,
&
tm
);
ptm
=
&
tm
;
...
...
dlls/gdi32/metafile.c
View file @
d0d4c74e
...
...
@@ -1271,7 +1271,7 @@ static BOOL MF_Play_MetaExtTextOut(HDC hdc, METARECORD *mr)
{
dxx
=
(
LPINT16
)(
sot
+
(((
s1
+
1
)
>>
1
)
*
2
));
dx
=
HeapAlloc
(
GetProcessHeap
(),
0
,
s1
*
sizeof
(
INT
));
if
(
dx
)
for
(
i
=
0
;
i
<
s1
;
i
++
)
dx
[
i
]
=
(
SHORT
)
dxx
[
i
];
if
(
dx
)
for
(
i
=
0
;
i
<
s1
;
i
++
)
dx
[
i
]
=
dxx
[
i
];
}
else
{
TRACE
(
"%s len: %d
\n
"
,
sot
,
mr
->
rdSize
);
...
...
dlls/gdi32/metafile16.c
View file @
d0d4c74e
...
...
@@ -308,8 +308,6 @@ HMETAFILE16 WINAPI SetMetaFileBits16( HGLOBAL16 hMem )
HMETAFILE16
WINAPI
SetMetaFileBitsBetter16
(
HMETAFILE16
hMeta
)
{
if
(
IsValidMetaFile16
(
hMeta
)
)
return
(
HMETAFILE16
)
GlobalReAlloc16
(
hMeta
,
0
,
GMEM_SHARE
|
GMEM_NODISCARD
|
GMEM_MODIFY
);
return
GlobalReAlloc16
(
hMeta
,
0
,
GMEM_SHARE
|
GMEM_NODISCARD
|
GMEM_MODIFY
);
return
(
HMETAFILE16
)
0
;
}
dlls/gdi32/printdrv.c
View file @
d0d4c74e
...
...
@@ -327,7 +327,7 @@ HPQ16 WINAPI CreatePQ16(INT16 size)
*/
INT16
WINAPI
DeletePQ16
(
HPQ16
hPQ
)
{
return
GlobalFree16
(
(
HGLOBAL16
)
hPQ
);
return
GlobalFree16
(
hPQ
);
}
/**********************************************************************
...
...
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