gdi32: Sign-compare warnings fix.
This commit is contained in:
parent
53160b600f
commit
44be6c7cbf
@ -335,7 +335,7 @@ LONG WINAPI GetBitmapBits(
|
|||||||
DIBSECTION *dib = bmp->dib;
|
DIBSECTION *dib = bmp->dib;
|
||||||
const char *src = dib->dsBm.bmBits;
|
const char *src = dib->dsBm.bmBits;
|
||||||
INT width_bytes = BITMAP_GetWidthBytes(dib->dsBm.bmWidth, dib->dsBm.bmBitsPixel);
|
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)
|
if (!bits)
|
||||||
{
|
{
|
||||||
@ -451,7 +451,7 @@ LONG WINAPI SetBitmapBits(
|
|||||||
{
|
{
|
||||||
DIBSECTION *dib = bmp->dib;
|
DIBSECTION *dib = bmp->dib;
|
||||||
char *dest = dib->dsBm.bmBits;
|
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;
|
if (count > max) count = max;
|
||||||
ret = count;
|
ret = count;
|
||||||
|
|
||||||
|
@ -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 )
|
static void DIB_CopyColorTable( DC *dc, BITMAPOBJ *bmp, WORD coloruse, const BITMAPINFO *info )
|
||||||
{
|
{
|
||||||
RGBQUAD *colorTable;
|
RGBQUAD *colorTable;
|
||||||
unsigned int colors;
|
unsigned int colors, i;
|
||||||
int i;
|
|
||||||
BOOL core_info = info->bmiHeader.biSize == sizeof(BITMAPCOREHEADER);
|
BOOL core_info = info->bmiHeader.biSize == sizeof(BITMAPCOREHEADER);
|
||||||
|
|
||||||
if (core_info)
|
if (core_info)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user