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
6d070ea2
Commit
6d070ea2
authored
Sep 14, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi: Cast-qual warnings fix.
parent
3ad3f8de
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
bitmap.c
dlls/gdi/bitmap.c
+1
-1
brush.c
dlls/gdi/brush.c
+1
-1
dib.c
dlls/gdi/dib.c
+4
-4
No files found.
dlls/gdi/bitmap.c
View file @
6d070ea2
...
...
@@ -439,7 +439,7 @@ LONG WINAPI SetBitmapBits(
{
dest
-=
dib
->
dsBm
.
bmWidthBytes
;
memcpy
(
dest
,
bits
,
min
(
count
,
dib
->
dsBm
.
bmWidthBytes
)
);
bits
=
(
char
*
)
bits
+
dib
->
dsBm
.
bmWidthBytes
;
bits
=
(
c
onst
c
har
*
)
bits
+
dib
->
dsBm
.
bmWidthBytes
;
count
-=
dib
->
dsBm
.
bmWidthBytes
;
}
}
...
...
dlls/gdi/brush.c
View file @
6d070ea2
...
...
@@ -273,7 +273,7 @@ HBRUSH WINAPI CreateDIBPatternBrush( HGLOBAL hbitmap, UINT coloruse )
*/
HBRUSH
WINAPI
CreateDIBPatternBrushPt
(
const
void
*
data
,
UINT
coloruse
)
{
BITMAPINFO
*
info
=
(
BITMAPINFO
*
)
data
;
const
BITMAPINFO
*
info
=
(
const
BITMAPINFO
*
)
data
;
LOGBRUSH
logbrush
;
if
(
!
data
)
...
...
dlls/gdi/dib.c
View file @
6d070ea2
...
...
@@ -129,7 +129,7 @@ int DIB_BitmapInfoSize( const BITMAPINFO * info, WORD coloruse )
if
(
info
->
bmiHeader
.
biSize
==
sizeof
(
BITMAPCOREHEADER
))
{
BITMAPCOREHEADER
*
core
=
(
BITMAPCOREHEADER
*
)
info
;
const
BITMAPCOREHEADER
*
core
=
(
const
BITMAPCOREHEADER
*
)
info
;
colors
=
(
core
->
bcBitCount
<=
8
)
?
1
<<
core
->
bcBitCount
:
0
;
return
sizeof
(
BITMAPCOREHEADER
)
+
colors
*
((
coloruse
==
DIB_RGB_COLORS
)
?
sizeof
(
RGBTRIPLE
)
:
sizeof
(
WORD
));
...
...
@@ -168,7 +168,7 @@ static int DIB_GetBitmapInfo( const BITMAPINFOHEADER *header, LONG *width,
}
if
(
header
->
biSize
==
sizeof
(
BITMAPCOREHEADER
))
{
BITMAPCOREHEADER
*
core
=
(
BITMAPCOREHEADER
*
)
header
;
const
BITMAPCOREHEADER
*
core
=
(
const
BITMAPCOREHEADER
*
)
header
;
*
width
=
core
->
bcWidth
;
*
height
=
core
->
bcHeight
;
*
planes
=
core
->
bcPlanes
;
...
...
@@ -179,7 +179,7 @@ static int DIB_GetBitmapInfo( const BITMAPINFOHEADER *header, LONG *width,
}
if
(
header
->
biSize
==
sizeof
(
BITMAPV4HEADER
))
{
BITMAPV4HEADER
*
v4hdr
=
(
BITMAPV4HEADER
*
)
header
;
const
BITMAPV4HEADER
*
v4hdr
=
(
const
BITMAPV4HEADER
*
)
header
;
*
width
=
v4hdr
->
bV4Width
;
*
height
=
v4hdr
->
bV4Height
;
*
planes
=
v4hdr
->
bV4Planes
;
...
...
@@ -190,7 +190,7 @@ static int DIB_GetBitmapInfo( const BITMAPINFOHEADER *header, LONG *width,
}
if
(
header
->
biSize
==
sizeof
(
BITMAPV5HEADER
))
{
BITMAPV5HEADER
*
v5hdr
=
(
BITMAPV5HEADER
*
)
header
;
const
BITMAPV5HEADER
*
v5hdr
=
(
const
BITMAPV5HEADER
*
)
header
;
*
width
=
v5hdr
->
bV5Width
;
*
height
=
v5hdr
->
bV5Height
;
*
planes
=
v5hdr
->
bV5Planes
;
...
...
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