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;
|
||||
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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue