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
44be6c7c
Commit
44be6c7c
authored
Oct 02, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Sign-compare warnings fix.
parent
53160b60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
bitmap.c
dlls/gdi32/bitmap.c
+2
-2
dib.c
dlls/gdi32/dib.c
+1
-2
No files found.
dlls/gdi32/bitmap.c
View file @
44be6c7c
...
...
@@ -335,7 +335,7 @@ LONG WINAPI GetBitmapBits(
DIBSECTION
*
dib
=
bmp
->
dib
;
const
char
*
src
=
dib
->
dsBm
.
bmBits
;
INT
width_bytes
=
BITMAP_GetWidthBytes
(
dib
->
dsBm
.
bmWidth
,
dib
->
dsBm
.
bmBitsPixel
);
DWORD
max
=
width_bytes
*
bmp
->
bitmap
.
bmHeight
;
LONG
max
=
width_bytes
*
bmp
->
bitmap
.
bmHeight
;
if
(
!
bits
)
{
...
...
@@ -451,7 +451,7 @@ LONG WINAPI SetBitmapBits(
{
DIBSECTION
*
dib
=
bmp
->
dib
;
char
*
dest
=
dib
->
dsBm
.
bmBits
;
DWORD
max
=
dib
->
dsBm
.
bmWidthBytes
*
dib
->
dsBm
.
bmHeight
;
LONG
max
=
dib
->
dsBm
.
bmWidthBytes
*
dib
->
dsBm
.
bmHeight
;
if
(
count
>
max
)
count
=
max
;
ret
=
count
;
...
...
dlls/gdi32/dib.c
View file @
44be6c7c
...
...
@@ -1193,8 +1193,7 @@ HBITMAP16 WINAPI CreateDIBSection16 (HDC16 hdc, const BITMAPINFO *bmi, UINT16 us
static
void
DIB_CopyColorTable
(
DC
*
dc
,
BITMAPOBJ
*
bmp
,
WORD
coloruse
,
const
BITMAPINFO
*
info
)
{
RGBQUAD
*
colorTable
;
unsigned
int
colors
;
int
i
;
unsigned
int
colors
,
i
;
BOOL
core_info
=
info
->
bmiHeader
.
biSize
==
sizeof
(
BITMAPCOREHEADER
);
if
(
core_info
)
...
...
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