gdi: Win64 printf format warning fixes.

This commit is contained in:
Michael Stefaniuc 2006-10-12 22:56:56 +02:00 committed by Alexandre Julliard
parent 175ed0c559
commit a0b260e7d7
27 changed files with 144 additions and 144 deletions

View File

@ -1,4 +1,4 @@
EXTRADEFS = -D_GDI32_ -DWINE_NO_LONG_AS_INT EXTRADEFS = -D_GDI32_
TOPSRCDIR = @top_srcdir@ TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../.. TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@

View File

@ -55,7 +55,7 @@ BOOL BIDI_Reorder(
UINT *lpOrder /* [out] Logical -> Visual order map */ UINT *lpOrder /* [out] Logical -> Visual order map */
) )
{ {
TRACE("%s, %d, 0x%08lx lpOutString=%p, lpOrder=%p\n", TRACE("%s, %d, 0x%08x lpOutString=%p, lpOrder=%p\n",
debugstr_wn(lpString, uCount), uCount, dwFlags, debugstr_wn(lpString, uCount), uCount, dwFlags,
lpOutString, lpOrder); lpOutString, lpOrder);

View File

@ -38,7 +38,7 @@ BOOL WINAPI PatBlt( HDC hdc, INT left, INT top,
if (dc->funcs->pPatBlt) if (dc->funcs->pPatBlt)
{ {
TRACE("%p %d,%d %dx%d %06lx\n", hdc, left, top, width, height, rop ); TRACE("%p %d,%d %dx%d %06x\n", hdc, left, top, width, height, rop );
bRet = dc->funcs->pPatBlt( dc->physDev, left, top, width, height, rop ); bRet = dc->funcs->pPatBlt( dc->physDev, left, top, width, height, rop );
} }
GDI_ReleaseObj( hdc ); GDI_ReleaseObj( hdc );
@ -61,7 +61,7 @@ BOOL WINAPI BitBlt( HDC hdcDst, INT xDst, INT yDst, INT width,
/* FIXME: there is a race condition here */ /* FIXME: there is a race condition here */
dcSrc = DC_GetDCUpdate( hdcSrc ); dcSrc = DC_GetDCUpdate( hdcSrc );
dcDst = DC_GetDCPtr( hdcDst ); dcDst = DC_GetDCPtr( hdcDst );
TRACE("hdcSrc=%p %d,%d -> hdcDest=%p %d,%d %dx%d rop=%06lx\n", TRACE("hdcSrc=%p %d,%d -> hdcDest=%p %d,%d %dx%d rop=%06x\n",
hdcSrc, xSrc, ySrc, hdcDst, xDst, yDst, width, height, rop); hdcSrc, xSrc, ySrc, hdcDst, xDst, yDst, width, height, rop);
ret = dcDst->funcs->pBitBlt( dcDst->physDev, xDst, yDst, width, height, ret = dcDst->funcs->pBitBlt( dcDst->physDev, xDst, yDst, width, height,
@ -141,7 +141,7 @@ BOOL WINAPI StretchBlt( HDC hdcDst, INT xDst, INT yDst,
{ {
dcDst = DC_GetDCPtr( hdcDst ); dcDst = DC_GetDCPtr( hdcDst );
TRACE("%p %d,%d %dx%d -> %p %d,%d %dx%d rop=%06lx\n", TRACE("%p %d,%d %dx%d -> %p %d,%d %dx%d rop=%06x\n",
hdcSrc, xSrc, ySrc, widthSrc, heightSrc, hdcSrc, xSrc, ySrc, widthSrc, heightSrc,
hdcDst, xDst, yDst, widthDst, heightDst, rop ); hdcDst, xDst, yDst, widthDst, heightDst, rop );

View File

@ -357,7 +357,7 @@ LONG WINAPI GetBitmapBits(
} }
if (count < 0) { if (count < 0) {
WARN("(%ld): Negative number of bytes passed???\n", count ); WARN("(%d): Negative number of bytes passed???\n", count );
count = -count; count = -count;
} }
@ -373,7 +373,7 @@ LONG WINAPI GetBitmapBits(
} }
TRACE("(%p, %ld, %p) %dx%d %d colors fetched height: %ld\n", TRACE("(%p, %d, %p) %dx%d %d colors fetched height: %d\n",
hbitmap, count, bits, bmp->bitmap.bmWidth, bmp->bitmap.bmHeight, hbitmap, count, bits, bmp->bitmap.bmWidth, bmp->bitmap.bmHeight,
1 << bmp->bitmap.bmBitsPixel, height ); 1 << bmp->bitmap.bmBitsPixel, height );
@ -420,7 +420,7 @@ LONG WINAPI SetBitmapBits(
return 0; return 0;
if (count < 0) { if (count < 0) {
WARN("(%ld): Negative number of bytes passed???\n", count ); WARN("(%d): Negative number of bytes passed???\n", count );
count = -count; count = -count;
} }
@ -454,7 +454,7 @@ LONG WINAPI SetBitmapBits(
if (height > bmp->bitmap.bmHeight) height = bmp->bitmap.bmHeight; if (height > bmp->bitmap.bmHeight) height = bmp->bitmap.bmHeight;
count = height * bmp->bitmap.bmWidthBytes; count = height * bmp->bitmap.bmWidthBytes;
TRACE("(%p, %ld, %p) %dx%d %d colors fetched height: %ld\n", TRACE("(%p, %d, %p) %dx%d %d colors fetched height: %d\n",
hbitmap, count, bits, bmp->bitmap.bmWidth, bmp->bitmap.bmHeight, hbitmap, count, bits, bmp->bitmap.bmWidth, bmp->bitmap.bmHeight,
1 << bmp->bitmap.bmBitsPixel, height ); 1 << bmp->bitmap.bmBitsPixel, height );

View File

@ -181,7 +181,7 @@ HBRUSH WINAPI CreateHatchBrush( INT style, COLORREF color )
{ {
LOGBRUSH logbrush; LOGBRUSH logbrush;
TRACE("%d %06lx\n", style, color ); TRACE("%d %06x\n", style, color );
logbrush.lbStyle = BS_HATCHED; logbrush.lbStyle = BS_HATCHED;
logbrush.lbColor = color; logbrush.lbColor = color;
@ -279,7 +279,7 @@ HBRUSH WINAPI CreateDIBPatternBrushPt( const void* data, UINT coloruse )
if (!data) if (!data)
return NULL; return NULL;
TRACE("%p %ldx%ld %dbpp\n", info, info->bmiHeader.biWidth, TRACE("%p %dx%d %dbpp\n", info, info->bmiHeader.biWidth,
info->bmiHeader.biHeight, info->bmiHeader.biBitCount); info->bmiHeader.biHeight, info->bmiHeader.biBitCount);
logbrush.lbStyle = BS_DIBPATTERNPT; logbrush.lbStyle = BS_DIBPATTERNPT;
@ -311,7 +311,7 @@ HBRUSH WINAPI CreateSolidBrush( COLORREF color )
{ {
LOGBRUSH logbrush; LOGBRUSH logbrush;
TRACE("%06lx\n", color ); TRACE("%06x\n", color );
logbrush.lbStyle = BS_SOLID; logbrush.lbStyle = BS_SOLID;
logbrush.lbColor = color; logbrush.lbColor = color;
@ -464,7 +464,7 @@ BOOL16 WINAPI SetSolidBrush16(HBRUSH16 hBrush, COLORREF newColor )
BRUSHOBJ * brushPtr; BRUSHOBJ * brushPtr;
BOOL16 res = FALSE; BOOL16 res = FALSE;
TRACE("(hBrush %04x, newColor %08lx)\n", hBrush, (DWORD)newColor); TRACE("(hBrush %04x, newColor %08x)\n", hBrush, (DWORD)newColor);
if (!(brushPtr = (BRUSHOBJ *) GDI_GetObjPtr( HBRUSH_32(hBrush), BRUSH_MAGIC ))) if (!(brushPtr = (BRUSHOBJ *) GDI_GetObjPtr( HBRUSH_32(hBrush), BRUSH_MAGIC )))
return FALSE; return FALSE;

View File

@ -329,7 +329,7 @@ INT16 WINAPI ExcludeVisRect16( HDC16 hdc16, INT16 left, INT16 top, INT16 right,
LPtoDP( hdc, pt, 2 ); LPtoDP( hdc, pt, 2 );
TRACE("%p %ld,%ld - %ld,%ld\n", hdc, pt[0].x, pt[0].y, pt[1].x, pt[1].y); TRACE("%p %d,%d - %d,%d\n", hdc, pt[0].x, pt[0].y, pt[1].x, pt[1].y);
if (!(tempRgn = CreateRectRgn( pt[0].x, pt[0].y, pt[1].x, pt[1].y ))) ret = ERROR; if (!(tempRgn = CreateRectRgn( pt[0].x, pt[0].y, pt[1].x, pt[1].y ))) ret = ERROR;
else else
@ -362,7 +362,7 @@ INT16 WINAPI IntersectVisRect16( HDC16 hdc16, INT16 left, INT16 top, INT16 right
LPtoDP( hdc, pt, 2 ); LPtoDP( hdc, pt, 2 );
TRACE("%p %ld,%ld - %ld,%ld\n", hdc, pt[0].x, pt[0].y, pt[1].x, pt[1].y); TRACE("%p %d,%d - %d,%d\n", hdc, pt[0].x, pt[0].y, pt[1].x, pt[1].y);
if (!(tempRgn = CreateRectRgn( pt[0].x, pt[0].y, pt[1].x, pt[1].y ))) ret = ERROR; if (!(tempRgn = CreateRectRgn( pt[0].x, pt[0].y, pt[1].x, pt[1].y ))) ret = ERROR;
@ -410,7 +410,7 @@ BOOL WINAPI RectVisible( HDC hdc, const RECT* rect )
HRGN clip; HRGN clip;
DC *dc = DC_GetDCUpdate( hdc ); DC *dc = DC_GetDCUpdate( hdc );
if (!dc) return FALSE; if (!dc) return FALSE;
TRACE("%p %ld,%ldx%ld,%ld\n", hdc, rect->left, rect->top, rect->right, rect->bottom ); TRACE("%p %d,%dx%d,%d\n", hdc, rect->left, rect->top, rect->right, rect->bottom );
tmpRect = *rect; tmpRect = *rect;
LPtoDP( hdc, (POINT *)&tmpRect, 2 ); LPtoDP( hdc, (POINT *)&tmpRect, 2 );

View File

@ -933,7 +933,7 @@ COLORREF WINAPI SetBkColor( HDC hdc, COLORREF color )
COLORREF oldColor; COLORREF oldColor;
DC * dc = DC_GetDCPtr( hdc ); DC * dc = DC_GetDCPtr( hdc );
TRACE("hdc=%p color=0x%08lx\n", hdc, color); TRACE("hdc=%p color=0x%08x\n", hdc, color);
if (!dc) return CLR_INVALID; if (!dc) return CLR_INVALID;
oldColor = dc->backgroundColor; oldColor = dc->backgroundColor;
@ -976,7 +976,7 @@ COLORREF WINAPI SetTextColor( HDC hdc, COLORREF color )
COLORREF oldColor; COLORREF oldColor;
DC * dc = DC_GetDCPtr( hdc ); DC * dc = DC_GetDCPtr( hdc );
TRACE(" hdc=%p color=0x%08lx\n", hdc, color); TRACE(" hdc=%p color=0x%08x\n", hdc, color);
if (!dc) return CLR_INVALID; if (!dc) return CLR_INVALID;
oldColor = dc->textColor; oldColor = dc->textColor;
@ -1168,7 +1168,7 @@ BOOL WINAPI GetWorldTransform( HDC hdc, LPXFORM xform )
BOOL WINAPI GetTransform( HDC hdc, DWORD unknown, LPXFORM xform ) BOOL WINAPI GetTransform( HDC hdc, DWORD unknown, LPXFORM xform )
{ {
if (unknown == 0x0203) return GetWorldTransform( hdc, xform ); if (unknown == 0x0203) return GetWorldTransform( hdc, xform );
FIXME("stub: don't know what to do for code %lx\n", unknown ); FIXME("stub: don't know what to do for code %x\n", unknown );
return FALSE; return FALSE;
} }
@ -1944,7 +1944,7 @@ DWORD WINAPI GetLayout(HDC hdc)
GDI_ReleaseObj( hdc ); GDI_ReleaseObj( hdc );
} }
TRACE("hdc : %p, layout : %08lx\n", hdc, layout); TRACE("hdc : %p, layout : %08x\n", hdc, layout);
return layout; return layout;
} }
@ -1967,7 +1967,7 @@ DWORD WINAPI SetLayout(HDC hdc, DWORD layout)
GDI_ReleaseObj( hdc ); GDI_ReleaseObj( hdc );
} }
TRACE("hdc : %p, old layout : %08lx, new layout : %08lx\n", hdc, oldlayout, layout); TRACE("hdc : %p, old layout : %08x, new layout : %08x\n", hdc, oldlayout, layout);
return oldlayout; return oldlayout;
} }
@ -2009,7 +2009,7 @@ COLORREF WINAPI SetDCBrushColor(HDC hdc, COLORREF crColor)
DC *dc; DC *dc;
COLORREF oldClr = CLR_INVALID; COLORREF oldClr = CLR_INVALID;
TRACE("hdc(%p) crColor(%08lx)\n", hdc, crColor); TRACE("hdc(%p) crColor(%08x)\n", hdc, crColor);
dc = DC_GetDCPtr( hdc ); dc = DC_GetDCPtr( hdc );
if (dc) if (dc)
@ -2073,7 +2073,7 @@ COLORREF WINAPI SetDCPenColor(HDC hdc, COLORREF crColor)
DC *dc; DC *dc;
COLORREF oldClr = CLR_INVALID; COLORREF oldClr = CLR_INVALID;
TRACE("hdc(%p) crColor(%08lx)\n", hdc, crColor); TRACE("hdc(%p) crColor(%08x)\n", hdc, crColor);
dc = DC_GetDCPtr( hdc ); dc = DC_GetDCPtr( hdc );
if (dc) if (dc)
@ -2108,7 +2108,7 @@ COLORREF WINAPI SetDCPenColor(HDC hdc, COLORREF crColor)
*/ */
DWORD WINAPI SetVirtualResolution(HDC hdc, DWORD dw2, DWORD dw3, DWORD dw4, DWORD dw5) DWORD WINAPI SetVirtualResolution(HDC hdc, DWORD dw2, DWORD dw3, DWORD dw4, DWORD dw5)
{ {
FIXME("(%p %08lx %08lx %08lx %08lx): stub!\n", hdc, dw2, dw3, dw4, dw5); FIXME("(%p %08x %08x %08x %08x): stub!\n", hdc, dw2, dw3, dw4, dw5);
return FALSE; return FALSE;
} }

View File

@ -199,7 +199,7 @@ static int DIB_GetBitmapInfo( const BITMAPINFOHEADER *header, LONG *width,
*size = v5hdr->bV5SizeImage; *size = v5hdr->bV5SizeImage;
return 5; return 5;
} }
ERR("(%ld): unknown/wrong size for header\n", header->biSize ); ERR("(%d): unknown/wrong size for header\n", header->biSize );
return -1; return -1;
} }
@ -1013,9 +1013,9 @@ INT WINAPI GetDIBits(
if (!core_header) if (!core_header)
{ {
TRACE("biSizeImage = %ld, ", info->bmiHeader.biSizeImage); TRACE("biSizeImage = %d, ", info->bmiHeader.biSizeImage);
} }
TRACE("biWidth = %ld, biHeight = %ld\n", width, height); TRACE("biWidth = %d, biHeight = %d\n", width, height);
GDI_ReleaseObj( hdc ); GDI_ReleaseObj( hdc );
GDI_ReleaseObj( hbitmap ); GDI_ReleaseObj( hbitmap );
@ -1052,7 +1052,7 @@ HBITMAP WINAPI CreateDIBitmap( HDC hdc, const BITMAPINFOHEADER *header,
/* Top-down DIBs have a negative height */ /* Top-down DIBs have a negative height */
if (height < 0) height = -height; if (height < 0) height = -height;
TRACE("hdc=%p, header=%p, init=%lu, bits=%p, data=%p, coloruse=%u (bitmap: width=%ld, height=%ld, bpp=%u, compr=%lu)\n", TRACE("hdc=%p, header=%p, init=%u, bits=%p, data=%p, coloruse=%u (bitmap: width=%d, height=%d, bpp=%u, compr=%u)\n",
hdc, header, init, bits, data, coloruse, width, height, bpp, compr); hdc, header, init, bits, data, coloruse, width, height, bpp, compr);
if (hdc == NULL) if (hdc == NULL)
@ -1149,13 +1149,13 @@ HBITMAP WINAPI CreateDIBSection(HDC hdc, CONST BITMAPINFO *bmi, UINT usage,
if (compression != BI_RGB && compression != BI_BITFIELDS) if (compression != BI_RGB && compression != BI_BITFIELDS)
{ {
TRACE("can't create a compressed (%lu) dibsection\n", compression); TRACE("can't create a compressed (%u) dibsection\n", compression);
return 0; return 0;
} }
if (!(dib = HeapAlloc( GetProcessHeap(), 0, sizeof(*dib) ))) return 0; if (!(dib = HeapAlloc( GetProcessHeap(), 0, sizeof(*dib) ))) return 0;
TRACE("format (%ld,%ld), planes %d, bpp %d, size %ld, %s\n", TRACE("format (%d,%d), planes %d, bpp %d, size %d, %s\n",
width, height, planes, bpp, sizeImage, usage == DIB_PAL_COLORS? "PAL" : "RGB"); width, height, planes, bpp, sizeImage, usage == DIB_PAL_COLORS? "PAL" : "RGB");
dib->dsBm.bmType = 0; dib->dsBm.bmType = 0;

View File

@ -494,7 +494,7 @@ INT WINAPI GDI_CallExtDeviceMode16( HWND hwnd,
INT ret = -1; INT ret = -1;
INT (*pExtDeviceMode)(LPSTR,HWND,LPDEVMODEA,LPSTR,LPSTR,LPDEVMODEA,LPSTR,DWORD); INT (*pExtDeviceMode)(LPSTR,HWND,LPDEVMODEA,LPSTR,LPSTR,LPDEVMODEA,LPSTR,DWORD);
TRACE("(%p, %p, %s, %s, %p, %s, %ld)\n", TRACE("(%p, %p, %s, %s, %p, %s, %d)\n",
hwnd, lpdmOutput, lpszDevice, lpszPort, lpdmInput, lpszProfile, fwMode ); hwnd, lpdmOutput, lpszDevice, lpszPort, lpdmInput, lpszProfile, fwMode );
if (!lpszDevice) return -1; if (!lpszDevice) return -1;

View File

@ -193,7 +193,7 @@ static const char *get_emr_name(DWORD type)
unsigned int i; unsigned int i;
for(i = 0; i < sizeof(emr_names) / sizeof(emr_names[0]); i++) for(i = 0; i < sizeof(emr_names) / sizeof(emr_names[0]); i++)
if(type == emr_names[i].type) return emr_names[i].name; if(type == emr_names[i].type) return emr_names[i].name;
TRACE("Unknown record type %ld\n", type); TRACE("Unknown record type %d\n", type);
return NULL; return NULL;
} }
@ -313,7 +313,7 @@ static HENHMETAFILE EMF_GetEnhMetaFile( HANDLE hFile )
if (!emh) return 0; if (!emh) return 0;
if (emh->iType != EMR_HEADER || emh->dSignature != ENHMETA_SIGNATURE) { if (emh->iType != EMR_HEADER || emh->dSignature != ENHMETA_SIGNATURE) {
WARN("Invalid emf header type 0x%08lx sig 0x%08lx.\n", WARN("Invalid emf header type 0x%08x sig 0x%08x.\n",
emh->iType, emh->dSignature); emh->iType, emh->dSignature);
goto err; goto err;
} }
@ -799,14 +799,14 @@ BOOL WINAPI PlayEnhMetaFileRecord(
case EMR_RESTOREDC: case EMR_RESTOREDC:
{ {
const EMRRESTOREDC *pRestoreDC = (const EMRRESTOREDC *)mr; const EMRRESTOREDC *pRestoreDC = (const EMRRESTOREDC *)mr;
TRACE("EMR_RESTORE: %ld\n", pRestoreDC->iRelative); TRACE("EMR_RESTORE: %d\n", pRestoreDC->iRelative);
RestoreDC(hdc, pRestoreDC->iRelative); RestoreDC(hdc, pRestoreDC->iRelative);
break; break;
} }
case EMR_INTERSECTCLIPRECT: case EMR_INTERSECTCLIPRECT:
{ {
const EMRINTERSECTCLIPRECT *pClipRect = (const EMRINTERSECTCLIPRECT *)mr; const EMRINTERSECTCLIPRECT *pClipRect = (const EMRINTERSECTCLIPRECT *)mr;
TRACE("EMR_INTERSECTCLIPRECT: rect %ld,%ld - %ld, %ld\n", TRACE("EMR_INTERSECTCLIPRECT: rect %d,%d - %d, %d\n",
pClipRect->rclClip.left, pClipRect->rclClip.top, pClipRect->rclClip.left, pClipRect->rclClip.top,
pClipRect->rclClip.right, pClipRect->rclClip.bottom); pClipRect->rclClip.right, pClipRect->rclClip.bottom);
IntersectClipRect(hdc, pClipRect->rclClip.left, pClipRect->rclClip.top, IntersectClipRect(hdc, pClipRect->rclClip.left, pClipRect->rclClip.top,
@ -1099,7 +1099,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
rc.top = pExtTextOutA->emrtext.rcl.top; rc.top = pExtTextOutA->emrtext.rcl.top;
rc.right = pExtTextOutA->emrtext.rcl.right; rc.right = pExtTextOutA->emrtext.rcl.right;
rc.bottom = pExtTextOutA->emrtext.rcl.bottom; rc.bottom = pExtTextOutA->emrtext.rcl.bottom;
TRACE("EMR_EXTTEXTOUTA: x,y = %ld, %ld. rect = %ld, %ld - %ld, %ld. flags %08lx\n", TRACE("EMR_EXTTEXTOUTA: x,y = %d, %d. rect = %d, %d - %d, %d. flags %08x\n",
pExtTextOutA->emrtext.ptlReference.x, pExtTextOutA->emrtext.ptlReference.y, pExtTextOutA->emrtext.ptlReference.x, pExtTextOutA->emrtext.ptlReference.y,
rc.left, rc.top, rc.right, rc.bottom, pExtTextOutA->emrtext.fOptions); rc.left, rc.top, rc.right, rc.bottom, pExtTextOutA->emrtext.fOptions);
@ -1127,7 +1127,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
rc.top = pExtTextOutW->emrtext.rcl.top; rc.top = pExtTextOutW->emrtext.rcl.top;
rc.right = pExtTextOutW->emrtext.rcl.right; rc.right = pExtTextOutW->emrtext.rcl.right;
rc.bottom = pExtTextOutW->emrtext.rcl.bottom; rc.bottom = pExtTextOutW->emrtext.rcl.bottom;
TRACE("EMR_EXTTEXTOUTW: x,y = %ld, %ld. rect = %ld, %ld - %ld, %ld. flags %08lx\n", TRACE("EMR_EXTTEXTOUTW: x,y = %d, %d. rect = %d, %d - %d, %d. flags %08x\n",
pExtTextOutW->emrtext.ptlReference.x, pExtTextOutW->emrtext.ptlReference.y, pExtTextOutW->emrtext.ptlReference.x, pExtTextOutW->emrtext.ptlReference.y,
rc.left, rc.top, rc.right, rc.bottom, pExtTextOutW->emrtext.fOptions); rc.left, rc.top, rc.right, rc.bottom, pExtTextOutW->emrtext.fOptions);
@ -1348,7 +1348,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
if (info->mode == MM_ISOTROPIC) if (info->mode == MM_ISOTROPIC)
EMF_FixIsotropic(hdc, info); EMF_FixIsotropic(hdc, info);
TRACE("EMRSCALEVIEWPORTEXTEX %ld/%ld %ld/%ld\n", TRACE("EMRSCALEVIEWPORTEXTEX %d/%d %d/%d\n",
lpScaleViewportExtEx->xNum,lpScaleViewportExtEx->xDenom, lpScaleViewportExtEx->xNum,lpScaleViewportExtEx->xDenom,
lpScaleViewportExtEx->yNum,lpScaleViewportExtEx->yDenom); lpScaleViewportExtEx->yNum,lpScaleViewportExtEx->yDenom);
@ -1373,7 +1373,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
if (info->mode == MM_ISOTROPIC) if (info->mode == MM_ISOTROPIC)
EMF_FixIsotropic(hdc, info); EMF_FixIsotropic(hdc, info);
TRACE("EMRSCALEWINDOWEXTEX %ld/%ld %ld/%ld\n", TRACE("EMRSCALEWINDOWEXTEX %d/%d %d/%d\n",
lpScaleWindowExtEx->xNum,lpScaleWindowExtEx->xDenom, lpScaleWindowExtEx->xNum,lpScaleWindowExtEx->xDenom,
lpScaleWindowExtEx->yNum,lpScaleWindowExtEx->yDenom); lpScaleWindowExtEx->yNum,lpScaleWindowExtEx->yDenom);
@ -1399,7 +1399,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
&lpModifyWorldTrans->xform); &lpModifyWorldTrans->xform);
break; break;
default: default:
FIXME("Unknown imode %ld\n", lpModifyWorldTrans->iMode); FIXME("Unknown imode %d\n", lpModifyWorldTrans->iMode);
break; break;
} }
break; break;
@ -1792,7 +1792,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
{ {
const EMRSTRETCHBLT *pStretchBlt = (const EMRSTRETCHBLT *)mr; const EMRSTRETCHBLT *pStretchBlt = (const EMRSTRETCHBLT *)mr;
TRACE("EMR_STRETCHBLT: %ld, %ld %ldx%ld -> %ld, %ld %ldx%ld. rop %08lx offBitsSrc %ld\n", TRACE("EMR_STRETCHBLT: %d, %d %dx%d -> %d, %d %dx%d. rop %08x offBitsSrc %d\n",
pStretchBlt->xSrc, pStretchBlt->ySrc, pStretchBlt->cxSrc, pStretchBlt->cySrc, pStretchBlt->xSrc, pStretchBlt->ySrc, pStretchBlt->cxSrc, pStretchBlt->cySrc,
pStretchBlt->xDest, pStretchBlt->yDest, pStretchBlt->cxDest, pStretchBlt->cyDest, pStretchBlt->xDest, pStretchBlt->yDest, pStretchBlt->cxDest, pStretchBlt->cyDest,
pStretchBlt->dwRop, pStretchBlt->offBitsSrc); pStretchBlt->dwRop, pStretchBlt->offBitsSrc);
@ -1835,7 +1835,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
{ {
const EMRALPHABLEND *pAlphaBlend = (const EMRALPHABLEND *)mr; const EMRALPHABLEND *pAlphaBlend = (const EMRALPHABLEND *)mr;
TRACE("EMR_ALPHABLEND: %ld, %ld %ldx%ld -> %ld, %ld %ldx%ld. blendfn %08lx offBitsSrc %ld\n", TRACE("EMR_ALPHABLEND: %d, %d %dx%d -> %d, %d %dx%d. blendfn %08x offBitsSrc %d\n",
pAlphaBlend->xSrc, pAlphaBlend->ySrc, pAlphaBlend->cxSrc, pAlphaBlend->cySrc, pAlphaBlend->xSrc, pAlphaBlend->ySrc, pAlphaBlend->cxSrc, pAlphaBlend->cySrc,
pAlphaBlend->xDest, pAlphaBlend->yDest, pAlphaBlend->cxDest, pAlphaBlend->cyDest, pAlphaBlend->xDest, pAlphaBlend->yDest, pAlphaBlend->cxDest, pAlphaBlend->cyDest,
pAlphaBlend->dwRop, pAlphaBlend->offBitsSrc); pAlphaBlend->dwRop, pAlphaBlend->offBitsSrc);
@ -2152,7 +2152,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
tmprc.left = tmprc.top = 0; tmprc.left = tmprc.top = 0;
tmprc.right = tmprc.bottom = 1000; tmprc.right = tmprc.bottom = 1000;
LPtoDP(hdc, (POINT*)&tmprc, 2); LPtoDP(hdc, (POINT*)&tmprc, 2);
TRACE("L:0,0 - 1000,1000 -> D:%ld,%ld - %ld,%ld\n", tmprc.left, TRACE("L:0,0 - 1000,1000 -> D:%d,%d - %d,%d\n", tmprc.left,
tmprc.top, tmprc.right, tmprc.bottom); tmprc.top, tmprc.right, tmprc.bottom);
if ( !IS_WIN9X() ) if ( !IS_WIN9X() )
@ -2316,7 +2316,7 @@ BOOL WINAPI EnumEnhMetaFile(
FLOAT xSrcPixSize, ySrcPixSize, xscale, yscale; FLOAT xSrcPixSize, ySrcPixSize, xscale, yscale;
XFORM xform; XFORM xform;
TRACE("rect: %ld,%ld - %ld,%ld. rclFrame: %ld,%ld - %ld,%ld\n", TRACE("rect: %d,%d - %d,%d. rclFrame: %d,%d - %d,%d\n",
lpRect->left, lpRect->top, lpRect->right, lpRect->bottom, lpRect->left, lpRect->top, lpRect->right, lpRect->bottom,
emh->rclFrame.left, emh->rclFrame.top, emh->rclFrame.right, emh->rclFrame.left, emh->rclFrame.top, emh->rclFrame.right,
emh->rclFrame.bottom); emh->rclFrame.bottom);
@ -2353,7 +2353,7 @@ BOOL WINAPI EnumEnhMetaFile(
while(ret && offset < emh->nBytes) while(ret && offset < emh->nBytes)
{ {
emr = (ENHMETARECORD *)((char *)emh + offset); emr = (ENHMETARECORD *)((char *)emh + offset);
TRACE("Calling EnumFunc with record %s, size %ld\n", get_emr_name(emr->iType), emr->nSize); TRACE("Calling EnumFunc with record %s, size %d\n", get_emr_name(emr->iType), emr->nSize);
ret = (*callback)(hdc, ht, emr, emh->nHandles, (LPARAM)data); ret = (*callback)(hdc, ht, emr, emh->nHandles, (LPARAM)data);
offset += emr->nSize; offset += emr->nSize;
} }
@ -2538,7 +2538,7 @@ static INT CALLBACK cbEnhPaletteCopy( HDC a,
EMF_PaletteCopy* info = (EMF_PaletteCopy*)lpData; EMF_PaletteCopy* info = (EMF_PaletteCopy*)lpData;
DWORD dwNumPalToCopy = min( lpEof->nPalEntries, info->cEntries ); DWORD dwNumPalToCopy = min( lpEof->nPalEntries, info->cEntries );
TRACE( "copying 0x%08lx palettes\n", dwNumPalToCopy ); TRACE( "copying 0x%08x palettes\n", dwNumPalToCopy );
memcpy( (LPVOID)info->lpPe, memcpy( (LPVOID)info->lpPe,
(LPCVOID)(((LPCSTR)lpEof) + lpEof->offPalEntries), (LPCVOID)(((LPCSTR)lpEof) + lpEof->offPalEntries),
@ -2643,7 +2643,7 @@ HENHMETAFILE WINAPI SetWinMetaFileBits(UINT cbBuffer,
if (lpmfp) if (lpmfp)
{ {
TRACE("mm = %ld %ldx%ld\n", lpmfp->mm, lpmfp->xExt, lpmfp->yExt); TRACE("mm = %d %dx%d\n", lpmfp->mm, lpmfp->xExt, lpmfp->yExt);
mm = lpmfp->mm; mm = lpmfp->mm;
xExt = lpmfp->xExt; xExt = lpmfp->xExt;

View File

@ -722,7 +722,7 @@ BOOL EMFDRV_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
nSize = sizeof(*pemr) + ((count+1) & ~1) * sizeof(WCHAR) + count * sizeof(INT); nSize = sizeof(*pemr) + ((count+1) & ~1) * sizeof(WCHAR) + count * sizeof(INT);
TRACE("%s %s count %d nSize = %ld\n", debugstr_wn(str, count), TRACE("%s %s count %d nSize = %d\n", debugstr_wn(str, count),
wine_dbgstr_rect(lprect), count, nSize); wine_dbgstr_rect(lprect), count, nSize);
pemr = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, nSize); pemr = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, nSize);

View File

@ -188,7 +188,7 @@ BOOL EMFDRV_WriteRecord( PHYSDEV dev, EMR *emr )
ENHMETAHEADER *emh; ENHMETAHEADER *emh;
EMFDRV_PDEVICE *physDev = (EMFDRV_PDEVICE *)dev; EMFDRV_PDEVICE *physDev = (EMFDRV_PDEVICE *)dev;
TRACE("record %ld, size %ld %s\n", TRACE("record %d, size %d %s\n",
emr->iType, emr->nSize, physDev->hFile ? "(to disk)" : ""); emr->iType, emr->nSize, physDev->hFile ? "(to disk)" : "");
assert( !(emr->nSize & 3) ); assert( !(emr->nSize & 3) );

View File

@ -401,7 +401,7 @@ HFONT WINAPI CreateFontIndirectW( const LOGFONTW *plf )
memcpy( &fontPtr->logfont, plf, sizeof(LOGFONTW) ); memcpy( &fontPtr->logfont, plf, sizeof(LOGFONTW) );
TRACE("(%ld %ld %ld %ld %x %d %x %d %d) %s %s %s %s => %p\n", TRACE("(%d %d %d %d %x %d %x %d %d) %s %s %s %s => %p\n",
plf->lfHeight, plf->lfWidth, plf->lfHeight, plf->lfWidth,
plf->lfEscapement, plf->lfOrientation, plf->lfEscapement, plf->lfOrientation,
plf->lfPitchAndFamily, plf->lfPitchAndFamily,
@ -1030,7 +1030,7 @@ BOOL WINAPI GetTextExtentPoint32A( HDC hdc, LPCSTR str, INT count,
HeapFree( GetProcessHeap(), 0, p ); HeapFree( GetProcessHeap(), 0, p );
} }
TRACE("(%p %s %d %p): returning %ld x %ld\n", TRACE("(%p %s %d %p): returning %d x %d\n",
hdc, debugstr_an (str, count), count, size, size->cx, size->cy ); hdc, debugstr_an (str, count), count, size, size->cx, size->cy );
return ret; return ret;
} }
@ -1089,7 +1089,7 @@ BOOL WINAPI GetTextExtentPointI(
GDI_ReleaseObj( hdc ); GDI_ReleaseObj( hdc );
TRACE("(%p %p %d %p): returning %ld x %ld\n", TRACE("(%p %p %d %p): returning %d x %d\n",
hdc, indices, count, size, size->cx, size->cy ); hdc, indices, count, size, size->cx, size->cy );
return ret; return ret;
} }
@ -1248,7 +1248,7 @@ BOOL WINAPI GetTextExtentExPointW( HDC hdc, LPCWSTR str, INT count,
GDI_ReleaseObj( hdc ); GDI_ReleaseObj( hdc );
TRACE("returning %d %ld x %ld\n",nFit,size->cx,size->cy); TRACE("returning %d %d x %d\n",nFit,size->cx,size->cy);
return ret; return ret;
} }
@ -1302,16 +1302,16 @@ BOOL WINAPI GetTextMetricsW( HDC hdc, TEXTMETRICW *metrics )
#undef WDPTOLP #undef WDPTOLP
#undef HDPTOLP #undef HDPTOLP
TRACE("text metrics:\n" TRACE("text metrics:\n"
" Weight = %03li\t FirstChar = %i\t AveCharWidth = %li\n" " Weight = %03i\t FirstChar = %i\t AveCharWidth = %i\n"
" Italic = % 3i\t LastChar = %i\t\t MaxCharWidth = %li\n" " Italic = % 3i\t LastChar = %i\t\t MaxCharWidth = %i\n"
" UnderLined = %01i\t DefaultChar = %i\t Overhang = %li\n" " UnderLined = %01i\t DefaultChar = %i\t Overhang = %i\n"
" StruckOut = %01i\t BreakChar = %i\t CharSet = %i\n" " StruckOut = %01i\t BreakChar = %i\t CharSet = %i\n"
" PitchAndFamily = %02x\n" " PitchAndFamily = %02x\n"
" --------------------\n" " --------------------\n"
" InternalLeading = %li\n" " InternalLeading = %i\n"
" Ascent = %li\n" " Ascent = %i\n"
" Descent = %li\n" " Descent = %i\n"
" Height = %li\n", " Height = %i\n",
metrics->tmWeight, metrics->tmFirstChar, metrics->tmAveCharWidth, metrics->tmWeight, metrics->tmFirstChar, metrics->tmAveCharWidth,
metrics->tmItalic, metrics->tmLastChar, metrics->tmMaxCharWidth, metrics->tmItalic, metrics->tmLastChar, metrics->tmMaxCharWidth,
metrics->tmUnderlined, metrics->tmDefaultChar, metrics->tmOverhang, metrics->tmUnderlined, metrics->tmDefaultChar, metrics->tmOverhang,
@ -1799,7 +1799,7 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
glyphs = reordered_str; glyphs = reordered_str;
if(lprect) if(lprect)
TRACE("rect: %ld,%ld - %ld,%ld\n", lprect->left, lprect->top, lprect->right, TRACE("rect: %d,%d - %d,%d\n", lprect->left, lprect->top, lprect->right,
lprect->bottom); lprect->bottom);
TRACE("align = %x bkmode = %x mapmode = %x\n", align, GetBkMode(hdc), GetMapMode(hdc)); TRACE("align = %x bkmode = %x mapmode = %x\n", align, GetBkMode(hdc), GetMapMode(hdc));
@ -2253,7 +2253,7 @@ DWORD WINAPI SetMapperFlags( HDC hDC, DWORD dwFlag )
/* FIXME: ret is just a success flag, we should return a proper value */ /* FIXME: ret is just a success flag, we should return a proper value */
} }
else else
FIXME("(%p, 0x%08lx): stub - harmless\n", hDC, dwFlag); FIXME("(%p, 0x%08x): stub - harmless\n", hDC, dwFlag);
GDI_ReleaseObj( hDC ); GDI_ReleaseObj( hDC );
return ret; return ret;
} }
@ -2454,7 +2454,7 @@ DWORD WINAPI GetGlyphOutlineW( HDC hdc, UINT uChar, UINT fuFormat,
DC *dc = DC_GetDCPtr(hdc); DC *dc = DC_GetDCPtr(hdc);
DWORD ret; DWORD ret;
TRACE("(%p, %04x, %04x, %p, %ld, %p, %p)\n", TRACE("(%p, %04x, %04x, %p, %d, %p, %p)\n",
hdc, uChar, fuFormat, lpgm, cbBuffer, lpBuffer, lpmat2 ); hdc, uChar, fuFormat, lpgm, cbBuffer, lpBuffer, lpmat2 );
if(!dc) return GDI_ERROR; if(!dc) return GDI_ERROR;
@ -2484,7 +2484,7 @@ BOOL WINAPI CreateScalableFontResourceA( DWORD fHidden,
* enumbered with EnumFonts/EnumFontFamilies * enumbered with EnumFonts/EnumFontFamilies
* lpszCurrentPath can be NULL * lpszCurrentPath can be NULL
*/ */
FIXME("(%ld,%s,%s,%s): stub\n", FIXME("(%d,%s,%s,%s): stub\n",
fHidden, debugstr_a(lpszResourceFile), debugstr_a(lpszFontFile), fHidden, debugstr_a(lpszResourceFile), debugstr_a(lpszFontFile),
debugstr_a(lpszCurrentPath) ); debugstr_a(lpszCurrentPath) );
@ -2505,7 +2505,7 @@ BOOL WINAPI CreateScalableFontResourceW( DWORD fHidden,
LPCWSTR lpszFontFile, LPCWSTR lpszFontFile,
LPCWSTR lpszCurrentPath ) LPCWSTR lpszCurrentPath )
{ {
FIXME("(%ld,%p,%p,%p): stub\n", FIXME("(%d,%p,%p,%p): stub\n",
fHidden, lpszResourceFile, lpszFontFile, lpszCurrentPath ); fHidden, lpszResourceFile, lpszFontFile, lpszCurrentPath );
return FALSE; /* create failed */ return FALSE; /* create failed */
} }
@ -2586,7 +2586,7 @@ DWORD WINAPI GetKerningPairsW( HDC hDC, DWORD cPairs,
DC *dc; DC *dc;
DWORD ret = 0; DWORD ret = 0;
TRACE("(%p,%ld,%p)\n", hDC, cPairs, lpKerningPairs); TRACE("(%p,%d,%p)\n", hDC, cPairs, lpKerningPairs);
if (!cPairs && lpKerningPairs) if (!cPairs && lpKerningPairs)
{ {
@ -2737,7 +2737,7 @@ DWORD WINAPI GetGlyphIndicesA(HDC hdc, LPCSTR lpstr, INT count,
WCHAR *lpstrW; WCHAR *lpstrW;
INT countW; INT countW;
TRACE("(%p, %s, %d, %p, 0x%lx)\n", TRACE("(%p, %s, %d, %p, 0x%x)\n",
hdc, debugstr_an(lpstr, count), count, pgi, flags); hdc, debugstr_an(lpstr, count), count, pgi, flags);
lpstrW = FONT_mbtowc(lpstr, count, &countW); lpstrW = FONT_mbtowc(lpstr, count, &countW);
@ -2756,7 +2756,7 @@ DWORD WINAPI GetGlyphIndicesW(HDC hdc, LPCWSTR lpstr, INT count,
DC *dc = DC_GetDCPtr(hdc); DC *dc = DC_GetDCPtr(hdc);
DWORD ret = GDI_ERROR; DWORD ret = GDI_ERROR;
TRACE("(%p, %s, %d, %p, 0x%lx)\n", TRACE("(%p, %s, %d, %p, 0x%x)\n",
hdc, debugstr_wn(lpstr, count), count, pgi, flags); hdc, debugstr_wn(lpstr, count), count, pgi, flags);
if(!dc) return GDI_ERROR; if(!dc) return GDI_ERROR;
@ -2786,7 +2786,7 @@ GetCharacterPlacementA(HDC hdc, LPCSTR lpString, INT uCount,
GCP_RESULTSW resultsW; GCP_RESULTSW resultsW;
DWORD ret; DWORD ret;
TRACE("%s, %d, %d, 0x%08lx\n", TRACE("%s, %d, %d, 0x%08x\n",
debugstr_an(lpString, uCount), uCount, nMaxExtent, dwFlags); debugstr_an(lpString, uCount), uCount, nMaxExtent, dwFlags);
/* both structs are equal in size */ /* both structs are equal in size */
@ -2844,16 +2844,16 @@ GetCharacterPlacementW(
SIZE size; SIZE size;
UINT i, nSet; UINT i, nSet;
TRACE("%s, %d, %d, 0x%08lx\n", TRACE("%s, %d, %d, 0x%08x\n",
debugstr_wn(lpString, uCount), uCount, nMaxExtent, dwFlags); debugstr_wn(lpString, uCount), uCount, nMaxExtent, dwFlags);
TRACE("lStructSize=%ld, lpOutString=%p, lpOrder=%p, lpDx=%p, lpCaretPos=%p\n" TRACE("lStructSize=%d, lpOutString=%p, lpOrder=%p, lpDx=%p, lpCaretPos=%p\n"
"lpClass=%p, lpGlyphs=%p, nGlyphs=%u, nMaxFit=%d\n", "lpClass=%p, lpGlyphs=%p, nGlyphs=%u, nMaxFit=%d\n",
lpResults->lStructSize, lpResults->lpOutString, lpResults->lpOrder, lpResults->lStructSize, lpResults->lpOutString, lpResults->lpOrder,
lpResults->lpDx, lpResults->lpCaretPos, lpResults->lpClass, lpResults->lpDx, lpResults->lpCaretPos, lpResults->lpClass,
lpResults->lpGlyphs, lpResults->nGlyphs, lpResults->nMaxFit); lpResults->lpGlyphs, lpResults->nGlyphs, lpResults->nMaxFit);
if(dwFlags&(~GCP_REORDER)) FIXME("flags 0x%08lx ignored\n", dwFlags); if(dwFlags&(~GCP_REORDER)) FIXME("flags 0x%08x ignored\n", dwFlags);
if(lpResults->lpClass) FIXME("classes not implemented\n"); if(lpResults->lpClass) FIXME("classes not implemented\n");
if (lpResults->lpCaretPos && (dwFlags & GCP_REORDER)) if (lpResults->lpCaretPos && (dwFlags & GCP_REORDER))
FIXME("Caret positions for complex scripts not implemented\n"); FIXME("Caret positions for complex scripts not implemented\n");
@ -3083,7 +3083,7 @@ BOOL WINAPI RemoveFontResourceW( LPCWSTR str )
*/ */
HANDLE WINAPI AddFontMemResourceEx( PVOID pbFont, DWORD cbFont, PVOID pdv, DWORD *pcFonts) HANDLE WINAPI AddFontMemResourceEx( PVOID pbFont, DWORD cbFont, PVOID pdv, DWORD *pcFonts)
{ {
FIXME("(%p,%08lx,%p,%p): stub\n", pbFont, cbFont, pdv, pcFonts); FIXME("(%p,%08x,%p,%p): stub\n", pbFont, cbFont, pdv, pcFonts);
return NULL; return NULL;
} }

View File

@ -886,7 +886,7 @@ static BOOL AddFontFileToList(const char *file, char *fake_family, DWORD flags)
face->scalable = FALSE; face->scalable = FALSE;
} }
TRACE("fsCsb = %08lx %08lx/%08lx %08lx %08lx %08lx\n", TRACE("fsCsb = %08x %08x/%08x %08x %08x %08x\n",
face->fs.fsCsb[0], face->fs.fsCsb[1], face->fs.fsCsb[0], face->fs.fsCsb[1],
face->fs.fsUsb[0], face->fs.fsUsb[1], face->fs.fsUsb[0], face->fs.fsUsb[1],
face->fs.fsUsb[2], face->fs.fsUsb[3]); face->fs.fsUsb[2], face->fs.fsUsb[3]);
@ -931,7 +931,7 @@ static void DumpFontList(void)
TRACE("Family: %s\n", debugstr_w(family->FamilyName)); TRACE("Family: %s\n", debugstr_w(family->FamilyName));
LIST_FOR_EACH(face_elem_ptr, &family->faces) { LIST_FOR_EACH(face_elem_ptr, &family->faces) {
face = LIST_ENTRY(face_elem_ptr, Face, entry); face = LIST_ENTRY(face_elem_ptr, Face, entry);
TRACE("\t%s\t%08lx", debugstr_w(face->StyleName), face->fs.fsCsb[0]); TRACE("\t%s\t%08x", debugstr_w(face->StyleName), face->fs.fsCsb[0]);
if(!face->scalable) if(!face->scalable)
TRACE(" %d", face->size.height); TRACE(" %d", face->size.height);
TRACE("\n"); TRACE("\n");
@ -1414,7 +1414,7 @@ INT WineEngAddFontResourceEx(LPCWSTR file, DWORD flags, PVOID pdv)
char *unixname; char *unixname;
if(flags) if(flags)
FIXME("Ignoring flags %lx\n", flags); FIXME("Ignoring flags %x\n", flags);
if((unixname = wine_get_unix_file_name(file))) if((unixname = wine_get_unix_file_name(file)))
{ {
@ -1558,11 +1558,11 @@ static void update_font_info(void)
RegCloseKey(hkey); RegCloseKey(hkey);
return; return;
} }
TRACE("updating registry, locale changed %s -> %08lx\n", debugstr_a(buf), lcid); TRACE("updating registry, locale changed %s -> %08x\n", debugstr_a(buf), lcid);
} }
else TRACE("updating registry, locale changed none -> %08lx\n", lcid); else TRACE("updating registry, locale changed none -> %08x\n", lcid);
sprintf(buf, "%08lx", lcid); sprintf(buf, "%08x", lcid);
RegSetValueExA(hkey, "Locale", 0, REG_SZ, (const BYTE *)buf, strlen(buf)+1); RegSetValueExA(hkey, "Locale", 0, REG_SZ, (const BYTE *)buf, strlen(buf)+1);
RegCloseKey(hkey); RegCloseKey(hkey);
@ -1595,7 +1595,7 @@ static void update_font_info(void)
return; return;
} }
} }
FIXME("there is no font defaults for lcid %04lx/ansi_cp %u\n", lcid, ansi_cp); FIXME("there is no font defaults for lcid %04x/ansi_cp %u\n", lcid, ansi_cp);
} }
/************************************************************* /*************************************************************
@ -1874,7 +1874,7 @@ static FT_Face OpenFontFile(GdiFont *font, char *file, FT_Long face_index, LONG
FT_Error err; FT_Error err;
FT_Face ft_face; FT_Face ft_face;
TRACE("%s, %ld, %ld x %ld\n", debugstr_a(file), face_index, width, height); TRACE("%s, %ld, %d x %d\n", debugstr_a(file), face_index, width, height);
err = pFT_New_Face(library, file, face_index, &ft_face); err = pFT_New_Face(library, file, face_index, &ft_face);
if(err) { if(err) {
ERR("FT_New_Face rets %d\n", err); ERR("FT_New_Face rets %d\n", err);
@ -1891,11 +1891,11 @@ static FT_Face OpenFontFile(GdiFont *font, char *file, FT_Long face_index, LONG
font->ppem = calc_ppem_for_height(ft_face, height); font->ppem = calc_ppem_for_height(ft_face, height);
if((err = pFT_Set_Pixel_Sizes(ft_face, 0, font->ppem)) != 0) if((err = pFT_Set_Pixel_Sizes(ft_face, 0, font->ppem)) != 0)
WARN("FT_Set_Pixel_Sizes %d, %ld rets %x\n", 0, font->ppem, err); WARN("FT_Set_Pixel_Sizes %d, %d rets %x\n", 0, font->ppem, err);
} else { } else {
font->ppem = height; font->ppem = height;
if((err = pFT_Set_Pixel_Sizes(ft_face, width, height)) != 0) if((err = pFT_Set_Pixel_Sizes(ft_face, width, height)) != 0)
WARN("FT_Set_Pixel_Sizes %ld, %ld rets %x\n", width, height, err); WARN("FT_Set_Pixel_Sizes %d, %d rets %x\n", width, height, err);
} }
return ft_face; return ft_face;
} }
@ -1925,11 +1925,11 @@ static int get_nearest_charset(Face *face, int *cp)
return csi.ciCharset; return csi.ciCharset;
} }
else else
FIXME("TCI failing on %lx\n", fs0); FIXME("TCI failing on %x\n", fs0);
} }
} }
FIXME("returning DEFAULT_CHARSET face->fs.fsCsb[0] = %08lx file = %s\n", FIXME("returning DEFAULT_CHARSET face->fs.fsCsb[0] = %08x file = %s\n",
face->fs.fsCsb[0], face->file); face->fs.fsCsb[0], face->file);
*cp = acp; *cp = acp;
return DEFAULT_CHARSET; return DEFAULT_CHARSET;
@ -2090,7 +2090,7 @@ static LONG load_VDMX(GdiFont *font, LONG height)
if(yMax + -yMin == height) { if(yMax + -yMin == height) {
font->yMax = yMax; font->yMax = yMax;
font->yMin = yMin; font->yMin = yMin;
TRACE("ppem %ld found; height=%ld yMax=%d yMin=%d\n", ppem, height, font->yMax, font->yMin); TRACE("ppem %d found; height=%d yMax=%d yMin=%d\n", ppem, height, font->yMax, font->yMin);
break; break;
} }
if(yMax + -yMin > height) { if(yMax + -yMin > height) {
@ -2101,13 +2101,13 @@ static LONG load_VDMX(GdiFont *font, LONG height)
font->yMax = GET_BE_WORD(vTable[(i * 3) + 1]); font->yMax = GET_BE_WORD(vTable[(i * 3) + 1]);
font->yMin = GET_BE_WORD(vTable[(i * 3) + 2]); font->yMin = GET_BE_WORD(vTable[(i * 3) + 2]);
ppem = GET_BE_WORD(vTable[i * 3]); ppem = GET_BE_WORD(vTable[i * 3]);
TRACE("ppem %ld found; height=%ld yMax=%d yMin=%d\n", ppem, height, font->yMax, font->yMin); TRACE("ppem %d found; height=%d yMax=%d yMin=%d\n", ppem, height, font->yMax, font->yMin);
break; break;
} }
} }
if(!font->yMax) { if(!font->yMax) {
ppem = 0; ppem = 0;
TRACE("ppem not found for height %ld\n", height); TRACE("ppem not found for height %d\n", height);
} }
} else { } else {
ppem = -height; ppem = -height;
@ -2124,7 +2124,7 @@ static LONG load_VDMX(GdiFont *font, LONG height)
if(yPelHeight == ppem) { if(yPelHeight == ppem) {
font->yMax = GET_BE_WORD(vTable[(i * 3) + 1]); font->yMax = GET_BE_WORD(vTable[(i * 3) + 1]);
font->yMin = GET_BE_WORD(vTable[(i * 3) + 2]); font->yMin = GET_BE_WORD(vTable[(i * 3) + 2]);
TRACE("ppem %ld found; yMax=%d yMin=%d\n", ppem, font->yMax, font->yMin); TRACE("ppem %d found; yMax=%d yMin=%d\n", ppem, font->yMax, font->yMin);
break; break;
} }
} }
@ -2280,7 +2280,7 @@ GdiFont *WineEngCreateFontInstance(DC *dc, HFONT hfont)
if (!GetObjectW( hfont, sizeof(lf), &lf )) return NULL; if (!GetObjectW( hfont, sizeof(lf), &lf )) return NULL;
can_use_bitmap = GetDeviceCaps(dc->hSelf, TEXTCAPS) & TC_RA_ABLE; can_use_bitmap = GetDeviceCaps(dc->hSelf, TEXTCAPS) & TC_RA_ABLE;
TRACE("%s, h=%ld, it=%d, weight=%ld, PandF=%02x, charset=%d orient %ld escapement %ld\n", TRACE("%s, h=%d, it=%d, weight=%d, PandF=%02x, charset=%d orient %d escapement %d\n",
debugstr_w(lf.lfFaceName), lf.lfHeight, lf.lfItalic, debugstr_w(lf.lfFaceName), lf.lfHeight, lf.lfItalic,
lf.lfWeight, lf.lfPitchAndFamily, lf.lfCharSet, lf.lfOrientation, lf.lfWeight, lf.lfPitchAndFamily, lf.lfCharSet, lf.lfOrientation,
lf.lfEscapement); lf.lfEscapement);
@ -2541,14 +2541,14 @@ static void dump_gdi_font_list(void)
TRACE("---------- gdiFont Cache ----------\n"); TRACE("---------- gdiFont Cache ----------\n");
LIST_FOR_EACH(elem_ptr, &gdi_font_list) { LIST_FOR_EACH(elem_ptr, &gdi_font_list) {
gdiFont = LIST_ENTRY(elem_ptr, struct tagGdiFont, entry); gdiFont = LIST_ENTRY(elem_ptr, struct tagGdiFont, entry);
TRACE("gdiFont=%p %s %ld\n", TRACE("gdiFont=%p %s %d\n",
gdiFont, debugstr_w(gdiFont->font_desc.lf.lfFaceName), gdiFont->font_desc.lf.lfHeight); gdiFont, debugstr_w(gdiFont->font_desc.lf.lfFaceName), gdiFont->font_desc.lf.lfHeight);
} }
TRACE("---------- Unused gdiFont Cache ----------\n"); TRACE("---------- Unused gdiFont Cache ----------\n");
LIST_FOR_EACH(elem_ptr, &unused_gdi_font_list) { LIST_FOR_EACH(elem_ptr, &unused_gdi_font_list) {
gdiFont = LIST_ENTRY(elem_ptr, struct tagGdiFont, entry); gdiFont = LIST_ENTRY(elem_ptr, struct tagGdiFont, entry);
TRACE("gdiFont=%p %s %ld\n", TRACE("gdiFont=%p %s %d\n",
gdiFont, debugstr_w(gdiFont->font_desc.lf.lfFaceName), gdiFont->font_desc.lf.lfHeight); gdiFont, debugstr_w(gdiFont->font_desc.lf.lfFaceName), gdiFont->font_desc.lf.lfHeight);
} }
} }
@ -2780,7 +2780,7 @@ DWORD WineEngEnumFonts(LPLOGFONTW plf, FONTENUMPROCW proc, LPARAM lparam)
FIXME("Unknown elfscript for bit %d\n", i); FIXME("Unknown elfscript for bit %d\n", i);
} }
} }
TRACE("enuming face %s full %s style %s charset %d type %ld script %s it %d weight %ld ntmflags %08lx\n", TRACE("enuming face %s full %s style %s charset %d type %d script %s it %d weight %d ntmflags %08x\n",
debugstr_w(elf.elfLogFont.lfFaceName), debugstr_w(elf.elfLogFont.lfFaceName),
debugstr_w(elf.elfFullName), debugstr_w(elf.elfStyle), debugstr_w(elf.elfFullName), debugstr_w(elf.elfStyle),
csi.ciCharset, type, debugstr_w(elf.elfScript), csi.ciCharset, type, debugstr_w(elf.elfScript),
@ -2821,7 +2821,7 @@ DWORD WineEngEnumFonts(LPLOGFONTW plf, FONTENUMPROCW proc, LPARAM lparam)
FIXME("Unknown elfscript for bit %d\n", i); FIXME("Unknown elfscript for bit %d\n", i);
} }
} }
TRACE("enuming face %s full %s style %s charset = %d type %ld script %s it %d weight %ld ntmflags %08lx\n", TRACE("enuming face %s full %s style %s charset = %d type %d script %s it %d weight %d ntmflags %08x\n",
debugstr_w(elf.elfLogFont.lfFaceName), debugstr_w(elf.elfLogFont.lfFaceName),
debugstr_w(elf.elfFullName), debugstr_w(elf.elfStyle), debugstr_w(elf.elfFullName), debugstr_w(elf.elfStyle),
csi.ciCharset, type, debugstr_w(elf.elfScript), csi.ciCharset, type, debugstr_w(elf.elfScript),
@ -2947,7 +2947,7 @@ DWORD WineEngGetGlyphOutline(GdiFont *font, UINT glyph, UINT format,
BOOL needsTransform = FALSE; BOOL needsTransform = FALSE;
TRACE("%p, %04x, %08x, %p, %08lx, %p, %p\n", font, glyph, format, lpgm, TRACE("%p, %04x, %08x, %p, %08x, %p, %p\n", font, glyph, format, lpgm,
buflen, buf, lpmat); buflen, buf, lpmat);
if(format & GGO_GLYPH_INDEX) { if(format & GGO_GLYPH_INDEX) {
@ -3900,7 +3900,7 @@ BOOL WineEngGetTextExtentExPoint(GdiFont *font, LPCWSTR wstr, INT count,
if (pnfit) if (pnfit)
*pnfit = nfit; *pnfit = nfit;
TRACE("return %ld, %ld, %d\n", size->cx, size->cy, nfit); TRACE("return %d, %d, %d\n", size->cx, size->cy, nfit);
return TRUE; return TRUE;
} }
@ -3927,7 +3927,7 @@ BOOL WineEngGetTextExtentPointI(GdiFont *font, const WORD *indices, INT count,
NULL); NULL);
size->cx += font->gm[indices[idx]].adv; size->cx += font->gm[indices[idx]].adv;
} }
TRACE("return %ld,%ld\n", size->cx, size->cy); TRACE("return %d,%d\n", size->cx, size->cy);
return TRUE; return TRUE;
} }
@ -3942,7 +3942,7 @@ DWORD WineEngGetFontData(GdiFont *font, DWORD table, DWORD offset, LPVOID buf,
FT_ULong len; FT_ULong len;
FT_Error err; FT_Error err;
TRACE("font=%p, table=%08lx, offset=%08lx, buf=%p, cbData=%lx\n", TRACE("font=%p, table=%08x, offset=%08x, buf=%p, cbData=%x\n",
font, table, offset, buf, cbData); font, table, offset, buf, cbData);
if(!FT_IS_SFNT(ft_face)) if(!FT_IS_SFNT(ft_face))
@ -4003,7 +4003,7 @@ DWORD WineEngGetFontData(GdiFont *font, DWORD table, DWORD offset, LPVOID buf,
} }
#endif #endif
if(err) { if(err) {
TRACE("Can't find table %08lx.\n", table); TRACE("Can't find table %08x.\n", table);
return GDI_ERROR; return GDI_ERROR;
} }
return len; return len;
@ -4157,7 +4157,7 @@ static DWORD parse_format0_kern_subtable(GdiFont *font,
USHORT i, nPairs; USHORT i, nPairs;
const struct TT_kern_pair *tt_kern_pair; const struct TT_kern_pair *tt_kern_pair;
TRACE("font height %ld, units_per_EM %d\n", font->ppem, font->ft_face->units_per_EM); TRACE("font height %d, units_per_EM %d\n", font->ppem, font->ft_face->units_per_EM);
nPairs = GET_BE_WORD(tt_f0_ks->nPairs); nPairs = GET_BE_WORD(tt_f0_ks->nPairs);

View File

@ -1608,7 +1608,7 @@ UINT16 WINAPI GetBoundsRect16( HDC16 hdc, LPRECT16 rect, UINT16 flags)
*/ */
WORD WINAPI EngineEnumerateFont16(LPSTR fontname, FARPROC16 proc, DWORD data ) WORD WINAPI EngineEnumerateFont16(LPSTR fontname, FARPROC16 proc, DWORD data )
{ {
FIXME("(%s,%p,%lx),stub\n",fontname,proc,data); FIXME("(%s,%p,%x),stub\n",fontname,proc,data);
return 0; return 0;
} }
@ -1655,7 +1655,7 @@ WORD WINAPI EngineRealizeFont16(LPLOGFONT16 lplogFont, LPTEXTXFORM16 lptextxform
*/ */
WORD WINAPI EngineRealizeFontExt16(LONG l1, LONG l2, LONG l3, LONG l4) WORD WINAPI EngineRealizeFontExt16(LONG l1, LONG l2, LONG l3, LONG l4)
{ {
FIXME("(%08lx,%08lx,%08lx,%08lx),stub\n",l1,l2,l3,l4); FIXME("(%08x,%08x,%08x,%08x),stub\n",l1,l2,l3,l4);
return 0; return 0;
} }

View File

@ -684,7 +684,7 @@ void *GDI_AllocObject( WORD size, WORD magic, HGDIOBJ *handle, const struct gdi_
obj->funcs = funcs; obj->funcs = funcs;
obj->hdcs = NULL; obj->hdcs = NULL;
TRACE("(%p): enter %ld\n", *handle, GDI_level.crst.RecursionCount); TRACE("(%p): enter %d\n", *handle, GDI_level.crst.RecursionCount);
return obj; return obj;
error: error:
@ -714,7 +714,7 @@ void *GDI_ReallocObject( WORD size, HGDIOBJ handle, void *object )
else ERR( "Invalid handle %p\n", handle ); else ERR( "Invalid handle %p\n", handle );
if (!new_ptr) if (!new_ptr)
{ {
TRACE("(%p): leave %ld\n", handle, GDI_level.crst.RecursionCount); TRACE("(%p): leave %d\n", handle, GDI_level.crst.RecursionCount);
_LeaveSysLevel( &GDI_level ); _LeaveSysLevel( &GDI_level );
} }
return new_ptr; return new_ptr;
@ -738,7 +738,7 @@ BOOL GDI_FreeObject( HGDIOBJ handle, void *ptr )
large_handles[i] = NULL; large_handles[i] = NULL;
} }
else ERR( "Invalid handle %p\n", handle ); else ERR( "Invalid handle %p\n", handle );
TRACE("(%p): leave %ld\n", handle, GDI_level.crst.RecursionCount); TRACE("(%p): leave %d\n", handle, GDI_level.crst.RecursionCount);
_LeaveSysLevel( &GDI_level ); _LeaveSysLevel( &GDI_level );
return TRUE; return TRUE;
} }
@ -770,7 +770,7 @@ void *GDI_GetObjPtr( HGDIOBJ handle, WORD magic )
_LeaveSysLevel( &GDI_level ); _LeaveSysLevel( &GDI_level );
WARN( "Invalid handle %p\n", handle ); WARN( "Invalid handle %p\n", handle );
} }
else TRACE("(%p): enter %ld\n", handle, GDI_level.crst.RecursionCount); else TRACE("(%p): enter %d\n", handle, GDI_level.crst.RecursionCount);
return ptr; return ptr;
} }
@ -782,7 +782,7 @@ void *GDI_GetObjPtr( HGDIOBJ handle, WORD magic )
*/ */
void GDI_ReleaseObj( HGDIOBJ handle ) void GDI_ReleaseObj( HGDIOBJ handle )
{ {
TRACE("(%p): leave %ld\n", handle, GDI_level.crst.RecursionCount); TRACE("(%p): leave %d\n", handle, GDI_level.crst.RecursionCount);
_LeaveSysLevel( &GDI_level ); _LeaveSysLevel( &GDI_level );
} }
@ -846,7 +846,7 @@ BOOL WINAPI DeleteObject( HGDIOBJ obj )
if (header->dwCount) if (header->dwCount)
{ {
TRACE("delayed for %p because object in use, count %ld\n", obj, header->dwCount ); TRACE("delayed for %p because object in use, count %d\n", obj, header->dwCount );
header->dwCount |= 0x80000000; /* mark for delete */ header->dwCount |= 0x80000000; /* mark for delete */
GDI_ReleaseObj( obj ); GDI_ReleaseObj( obj );
return TRUE; return TRUE;
@ -1237,7 +1237,7 @@ INT WINAPI EnumObjects( HDC hdc, INT nObjType,
pen.lopnWidth.y = 0; pen.lopnWidth.y = 0;
pen.lopnColor = solid_colors[i]; pen.lopnColor = solid_colors[i];
retval = lpEnumFunc( &pen, lParam ); retval = lpEnumFunc( &pen, lParam );
TRACE("solid pen %08lx, ret=%d\n", TRACE("solid pen %08x, ret=%d\n",
solid_colors[i], retval); solid_colors[i], retval);
if (!retval) break; if (!retval) break;
} }
@ -1251,7 +1251,7 @@ INT WINAPI EnumObjects( HDC hdc, INT nObjType,
brush.lbColor = solid_colors[i]; brush.lbColor = solid_colors[i];
brush.lbHatch = 0; brush.lbHatch = 0;
retval = lpEnumFunc( &brush, lParam ); retval = lpEnumFunc( &brush, lParam );
TRACE("solid brush %08lx, ret=%d\n", TRACE("solid brush %08x, ret=%d\n",
solid_colors[i], retval); solid_colors[i], retval);
if (!retval) break; if (!retval) break;
} }

View File

@ -417,10 +417,10 @@ BOOL MF_PlayMetaFile( HDC hdc, METAHEADER *mh)
while (offset < mh->mtSize * 2) while (offset < mh->mtSize * 2)
{ {
mr = (METARECORD *)((char *)mh + offset); mr = (METARECORD *)((char *)mh + offset);
TRACE("offset=%04x,size=%08lx\n", TRACE("offset=%04x,size=%08x\n",
offset, mr->rdSize); offset, mr->rdSize);
if (mr->rdSize < 3) { /* catch illegal record sizes */ if (mr->rdSize < 3) { /* catch illegal record sizes */
TRACE("Entry got size %ld at offset %d, total mf length is %ld\n", TRACE("Entry got size %d at offset %d, total mf length is %d\n",
mr->rdSize,offset,mh->mtSize*2); mr->rdSize,offset,mh->mtSize*2);
break; break;
} }
@ -1270,8 +1270,8 @@ static BOOL MF_Play_MetaExtTextOut(HDC hdc, METARECORD *mr)
if (dx) for (i = 0; i < s1; i++) dx[i] = (SHORT)dxx[i]; if (dx) for (i = 0; i < s1; i++) dx[i] = (SHORT)dxx[i];
} }
else { else {
TRACE("%s len: %ld\n", sot, mr->rdSize); TRACE("%s len: %d\n", sot, mr->rdSize);
WARN("Please report: ExtTextOut len=%ld slen=%d rdSize=%ld opt=%04x\n", WARN("Please report: ExtTextOut len=%d slen=%d rdSize=%d opt=%04x\n",
len, s1, mr->rdSize, mr->rdParm[3]); len, s1, mr->rdSize, mr->rdParm[3]);
dxx = NULL; /* should't happen -- but if, we continue with NULL */ dxx = NULL; /* should't happen -- but if, we continue with NULL */
} }
@ -1284,7 +1284,7 @@ static BOOL MF_Play_MetaExtTextOut(HDC hdc, METARECORD *mr)
s1, dx); /* length, dx array */ s1, dx); /* length, dx array */
if (dx) if (dx)
{ {
TRACE("%s len: %ld dx0: %d\n", sot, mr->rdSize, dx[0]); TRACE("%s len: %d dx0: %d\n", sot, mr->rdSize, dx[0]);
HeapFree( GetProcessHeap(), 0, dx ); HeapFree( GetProcessHeap(), 0, dx );
} }
return TRUE; return TRUE;

View File

@ -98,7 +98,7 @@ BOOL MFDRV_StretchBlt( PHYSDEV devDst, INT xDst, INT yDst, INT widthDst,
lpBMI->biYPelsPerMeter = MulDiv(GetDeviceCaps(physDevSrc->hdc,LOGPIXELSY),3937,100); lpBMI->biYPelsPerMeter = MulDiv(GetDeviceCaps(physDevSrc->hdc,LOGPIXELSY),3937,100);
lpBMI->biClrImportant = 0; /* 1 meter = 39.37 inch */ lpBMI->biClrImportant = 0; /* 1 meter = 39.37 inch */
TRACE("MF_StretchBltViaDIB->len = %ld rop=%lx PixYPM=%ld Caps=%d\n", TRACE("MF_StretchBltViaDIB->len = %d rop=%x PixYPM=%d Caps=%d\n",
len,rop,lpBMI->biYPelsPerMeter,GetDeviceCaps(physDevSrc->hdc, LOGPIXELSY)); len,rop,lpBMI->biYPelsPerMeter,GetDeviceCaps(physDevSrc->hdc, LOGPIXELSY));
if (GetDIBits(physDevSrc->hdc, hBitmap, 0, (UINT)lpBMI->biHeight, if (GetDIBits(physDevSrc->hdc, hBitmap, 0, (UINT)lpBMI->biHeight,

View File

@ -441,7 +441,7 @@ BOOL MFDRV_WriteRecord( PHYSDEV dev, METARECORD *mr, DWORD rlen)
mh = HeapReAlloc( GetProcessHeap(), 0, physDev->mh, size); mh = HeapReAlloc( GetProcessHeap(), 0, physDev->mh, size);
if (!mh) return FALSE; if (!mh) return FALSE;
physDev->mh = mh; physDev->mh = mh;
TRACE("Reallocated metafile: new size is %ld\n",size); TRACE("Reallocated metafile: new size is %d\n",size);
} }
memcpy((WORD *)physDev->mh + physDev->mh->mtSize, mr, rlen); memcpy((WORD *)physDev->mh + physDev->mh->mtSize, mr, rlen);
break; break;

View File

@ -110,7 +110,7 @@ BOOL WINAPI wglUseFontBitmapsA(HDC hdc, DWORD first, DWORD count, DWORD listBase
BOOL ret = FALSE; BOOL ret = FALSE;
DC * dc = DC_GetDCPtr( hdc ); DC * dc = DC_GetDCPtr( hdc );
TRACE("(%p, %ld, %ld, %ld)\n", hdc, first, count, listBase); TRACE("(%p, %d, %d, %d)\n", hdc, first, count, listBase);
if (!dc) return FALSE; if (!dc) return FALSE;
@ -129,7 +129,7 @@ BOOL WINAPI wglUseFontBitmapsW(HDC hdc, DWORD first, DWORD count, DWORD listBase
BOOL ret = FALSE; BOOL ret = FALSE;
DC * dc = DC_GetDCPtr( hdc ); DC * dc = DC_GetDCPtr( hdc );
TRACE("(%p, %ld, %ld, %ld)\n", hdc, first, count, listBase); TRACE("(%p, %d, %d, %d)\n", hdc, first, count, listBase);
if (!dc) return FALSE; if (!dc) return FALSE;

View File

@ -1151,7 +1151,7 @@ BOOL WINAPI GdiGradientFill( HDC hdc, TRIVERTEX *vert_array, ULONG nvert,
{ {
unsigned int i; unsigned int i;
TRACE("vert_array:0x%08lx nvert:%ld grad_array:0x%08lx ngrad:%ld\n", TRACE("vert_array:0x%08lx nvert:%d grad_array:0x%08lx ngrad:%d\n",
(long)vert_array, nvert, (long)grad_array, ngrad); (long)vert_array, nvert, (long)grad_array, ngrad);
switch(mode) switch(mode)

View File

@ -604,7 +604,7 @@ UINT WINAPI GetNearestPaletteIndex(
} }
GDI_ReleaseObj( hpalette ); GDI_ReleaseObj( hpalette );
} }
TRACE("(%p,%06lx): returning %d\n", hpalette, color, index ); TRACE("(%p,%06x): returning %d\n", hpalette, color, index );
return index; return index;
} }
@ -657,7 +657,7 @@ COLORREF WINAPI GetNearestColor(
if (!GetPaletteEntries( hpal, index, 1, &entry )) if (!GetPaletteEntries( hpal, index, 1, &entry ))
{ {
WARN("RGB(%lx) : idx %d is out of bounds, assuming NULL\n", color, index ); WARN("RGB(%x) : idx %d is out of bounds, assuming NULL\n", color, index );
if (!GetPaletteEntries( hpal, 0, 1, &entry )) if (!GetPaletteEntries( hpal, 0, 1, &entry ))
{ {
GDI_ReleaseObj( hdc ); GDI_ReleaseObj( hdc );
@ -669,7 +669,7 @@ COLORREF WINAPI GetNearestColor(
nearest = color & 0x00ffffff; nearest = color & 0x00ffffff;
GDI_ReleaseObj( hdc ); GDI_ReleaseObj( hdc );
TRACE("(%06lx): returning %06lx\n", color, nearest ); TRACE("(%06x): returning %06x\n", color, nearest );
return nearest; return nearest;
} }
@ -913,7 +913,7 @@ VOID WINAPI SetMagicColors16(HDC16 hDC, COLORREF color, UINT16 index)
*/ */
BOOL WINAPI SetMagicColors(HDC hdc, ULONG u1, ULONG u2) BOOL WINAPI SetMagicColors(HDC hdc, ULONG u1, ULONG u2)
{ {
FIXME("(%p 0x%08lx 0x%08lx): stub\n", hdc, u1, u2); FIXME("(%p 0x%08x 0x%08x): stub\n", hdc, u1, u2);
return TRUE; return TRUE;
} }
@ -1003,7 +1003,7 @@ BOOL WINAPI GetICMProfileW(HDC hDC, LPDWORD lpcbName, LPWSTR lpszFilename)
*/ */
BOOL WINAPI GetLogColorSpaceA(HCOLORSPACE hColorSpace, LPLOGCOLORSPACEA lpBuffer, DWORD nSize) BOOL WINAPI GetLogColorSpaceA(HCOLORSPACE hColorSpace, LPLOGCOLORSPACEA lpBuffer, DWORD nSize)
{ {
FIXME("%p %p 0x%08lx: stub!\n", hColorSpace, lpBuffer, nSize); FIXME("%p %p 0x%08x: stub!\n", hColorSpace, lpBuffer, nSize);
return FALSE; return FALSE;
} }
@ -1013,7 +1013,7 @@ BOOL WINAPI GetLogColorSpaceA(HCOLORSPACE hColorSpace, LPLOGCOLORSPACEA lpBuffer
*/ */
BOOL WINAPI GetLogColorSpaceW(HCOLORSPACE hColorSpace, LPLOGCOLORSPACEW lpBuffer, DWORD nSize) BOOL WINAPI GetLogColorSpaceW(HCOLORSPACE hColorSpace, LPLOGCOLORSPACEW lpBuffer, DWORD nSize)
{ {
FIXME("%p %p 0x%08lx: stub!\n", hColorSpace, lpBuffer, nSize); FIXME("%p %p 0x%08x: stub!\n", hColorSpace, lpBuffer, nSize);
return FALSE; return FALSE;
} }
@ -1043,7 +1043,7 @@ BOOL WINAPI SetICMProfileW(HDC hDC, LPWSTR lpszFilename)
*/ */
BOOL WINAPI UpdateICMRegKeyA(DWORD dwReserved, LPSTR lpszCMID, LPSTR lpszFileName, UINT nCommand) BOOL WINAPI UpdateICMRegKeyA(DWORD dwReserved, LPSTR lpszCMID, LPSTR lpszFileName, UINT nCommand)
{ {
FIXME("(0x%08lx, %s, %s, 0x%08x): stub!\n", dwReserved, debugstr_a(lpszCMID), FIXME("(0x%08x, %s, %s, 0x%08x): stub!\n", dwReserved, debugstr_a(lpszCMID),
debugstr_a(lpszFileName), nCommand); debugstr_a(lpszFileName), nCommand);
return TRUE; /* success */ return TRUE; /* success */
} }
@ -1054,7 +1054,7 @@ BOOL WINAPI UpdateICMRegKeyA(DWORD dwReserved, LPSTR lpszCMID, LPSTR lpszFileNam
*/ */
BOOL WINAPI UpdateICMRegKeyW(DWORD dwReserved, LPWSTR lpszCMID, LPWSTR lpszFileName, UINT nCommand) BOOL WINAPI UpdateICMRegKeyW(DWORD dwReserved, LPWSTR lpszCMID, LPWSTR lpszFileName, UINT nCommand)
{ {
FIXME("(0x%08lx, %s, %s, 0x%08x): stub!\n", dwReserved, debugstr_w(lpszCMID), FIXME("(0x%08x, %s, %s, 0x%08x): stub!\n", dwReserved, debugstr_w(lpszCMID),
debugstr_w(lpszFileName), nCommand); debugstr_w(lpszFileName), nCommand);
return TRUE; /* success */ return TRUE; /* success */
} }

View File

@ -1278,7 +1278,7 @@ static BOOL PATH_add_outline(DC *dc, INT x, INT y, TTPOLYGONHEADER *header, DWOR
if (header->dwType != TT_POLYGON_TYPE) if (header->dwType != TT_POLYGON_TYPE)
{ {
FIXME("Unknown header type %ld\n", header->dwType); FIXME("Unknown header type %d\n", header->dwType);
return FALSE; return FALSE;
} }
@ -1441,7 +1441,7 @@ BOOL PATH_AddEntry(GdiPath *pPath, const POINT *pPoint, BYTE flags)
/* FIXME: If newStroke is true, perhaps we want to check that we're /* FIXME: If newStroke is true, perhaps we want to check that we're
* getting a PT_MOVETO * getting a PT_MOVETO
*/ */
TRACE("(%ld,%ld) - %d\n", pPoint->x, pPoint->y, flags); TRACE("(%d,%d) - %d\n", pPoint->x, pPoint->y, flags);
/* Check that path is open */ /* Check that path is open */
if(pPath->state!=PATH_Open) if(pPath->state!=PATH_Open)
@ -1696,7 +1696,7 @@ static BOOL PATH_StrokePath(DC *dc, GdiPath *pPath)
} }
switch(pPath->pFlags[i]) { switch(pPath->pFlags[i]) {
case PT_MOVETO: case PT_MOVETO:
TRACE("Got PT_MOVETO (%ld, %ld)\n", TRACE("Got PT_MOVETO (%d, %d)\n",
pPath->pPoints[i].x, pPath->pPoints[i].y); pPath->pPoints[i].x, pPath->pPoints[i].y);
if(nLinePts >= 2) if(nLinePts >= 2)
Polyline(dc->hSelf, pLinePts, nLinePts); Polyline(dc->hSelf, pLinePts, nLinePts);
@ -1705,7 +1705,7 @@ static BOOL PATH_StrokePath(DC *dc, GdiPath *pPath)
break; break;
case PT_LINETO: case PT_LINETO:
case (PT_LINETO | PT_CLOSEFIGURE): case (PT_LINETO | PT_CLOSEFIGURE):
TRACE("Got PT_LINETO (%ld, %ld)\n", TRACE("Got PT_LINETO (%d, %d)\n",
pPath->pPoints[i].x, pPath->pPoints[i].y); pPath->pPoints[i].x, pPath->pPoints[i].y);
pLinePts[nLinePts++] = pPath->pPoints[i]; pLinePts[nLinePts++] = pPath->pPoints[i];
break; break;

View File

@ -65,7 +65,7 @@ HPEN WINAPI CreatePen( INT style, INT width, COLORREF color )
{ {
LOGPEN logpen; LOGPEN logpen;
TRACE("%d %d %06lx\n", style, width, color ); TRACE("%d %d %06x\n", style, width, color );
logpen.lopnStyle = style; logpen.lopnStyle = style;
logpen.lopnWidth.x = width; logpen.lopnWidth.x = width;

View File

@ -734,7 +734,7 @@ INT16 WINAPI EndSpoolPage16(HPJOB16 hJob)
DWORD WINAPI GetSpoolJob16(int nOption, LONG param) DWORD WINAPI GetSpoolJob16(int nOption, LONG param)
{ {
DWORD retval = 0; DWORD retval = 0;
TRACE("In GetSpoolJob param 0x%lx noption %d\n",param, nOption); TRACE("In GetSpoolJob param 0x%x noption %d\n",param, nOption);
return retval; return retval;
} }
@ -888,7 +888,7 @@ DWORD WINAPI DrvSetPrinterData16(LPSTR lpPrinter, LPSTR lpProfile,
TRACE("profile %s\n",lpProfile); TRACE("profile %s\n",lpProfile);
else else
TRACE("profile %p\n",lpProfile); TRACE("profile %p\n",lpProfile);
TRACE("lpType %08lx\n",lpType); TRACE("lpType %08x\n",lpType);
if ((!lpPrinter) || (!lpProfile) || if ((!lpPrinter) || (!lpProfile) ||
((DWORD)lpProfile == INT_PD_DEFAULT_MODEL) || (HIWORD(lpProfile) && ((DWORD)lpProfile == INT_PD_DEFAULT_MODEL) || (HIWORD(lpProfile) &&

View File

@ -474,11 +474,11 @@ static void REGION_DumpRegion(WINEREGION *pReg)
{ {
RECT *pRect, *pRectEnd = pReg->rects + pReg->numRects; RECT *pRect, *pRectEnd = pReg->rects + pReg->numRects;
TRACE("Region %p: %ld,%ld - %ld,%ld %d rects\n", pReg, TRACE("Region %p: %d,%d - %d,%d %d rects\n", pReg,
pReg->extents.left, pReg->extents.top, pReg->extents.left, pReg->extents.top,
pReg->extents.right, pReg->extents.bottom, pReg->numRects); pReg->extents.right, pReg->extents.bottom, pReg->numRects);
for(pRect = pReg->rects; pRect < pRectEnd; pRect++) for(pRect = pReg->rects; pRect < pRectEnd; pRect++)
TRACE("\t%ld,%ld - %ld,%ld\n", pRect->left, pRect->top, TRACE("\t%d,%d - %d,%d\n", pRect->left, pRect->top,
pRect->right, pRect->bottom); pRect->right, pRect->bottom);
return; return;
} }
@ -648,7 +648,7 @@ INT WINAPI GetRgnBox( HRGN hrgn, LPRECT rect )
rect->top = obj->rgn->extents.top; rect->top = obj->rgn->extents.top;
rect->right = obj->rgn->extents.right; rect->right = obj->rgn->extents.right;
rect->bottom = obj->rgn->extents.bottom; rect->bottom = obj->rgn->extents.bottom;
TRACE("%p (%ld,%ld-%ld,%ld)\n", hrgn, TRACE("%p (%d,%d-%d,%d)\n", hrgn,
rect->left, rect->top, rect->right, rect->bottom); rect->left, rect->top, rect->right, rect->bottom);
ret = get_region_type( obj ); ret = get_region_type( obj );
GDI_ReleaseObj(hrgn); GDI_ReleaseObj(hrgn);
@ -957,7 +957,7 @@ DWORD WINAPI GetRegionData(HRGN hrgn, DWORD count, LPRGNDATA rgndata)
DWORD size; DWORD size;
RGNOBJ *obj = (RGNOBJ *) GDI_GetObjPtr( hrgn, REGION_MAGIC ); RGNOBJ *obj = (RGNOBJ *) GDI_GetObjPtr( hrgn, REGION_MAGIC );
TRACE(" %p count = %ld, rgndata = %p\n", hrgn, count, rgndata); TRACE(" %p count = %d, rgndata = %p\n", hrgn, count, rgndata);
if(!obj) return 0; if(!obj) return 0;
@ -1008,7 +1008,7 @@ HRGN WINAPI ExtCreateRegion( const XFORM* lpXform, DWORD dwCount, const RGNDATA*
{ {
HRGN hrgn; HRGN hrgn;
TRACE(" %p %ld %p\n", lpXform, dwCount, rgndata ); TRACE(" %p %d %p\n", lpXform, dwCount, rgndata );
if( lpXform ) if( lpXform )
WARN("(Xform not implemented - ignored)\n"); WARN("(Xform not implemented - ignored)\n");
@ -1018,7 +1018,7 @@ HRGN WINAPI ExtCreateRegion( const XFORM* lpXform, DWORD dwCount, const RGNDATA*
/* FIXME: We can use CreatePolyPolygonRgn() here /* FIXME: We can use CreatePolyPolygonRgn() here
* for trapezoidal data */ * for trapezoidal data */
WARN("(Unsupported region data type: %lu)\n", rgndata->rdh.iType); WARN("(Unsupported region data type: %u)\n", rgndata->rdh.iType);
goto fail; goto fail;
} }

View File

@ -133,7 +133,7 @@ HBITMAP16 WINAPI WinGCreateBitmap16(HDC16 hdc, BITMAPINFO *bmpi,
SEGPTR *bits) SEGPTR *bits)
{ {
TRACE("(%d,%p,%p)\n", hdc, bmpi, bits); TRACE("(%d,%p,%p)\n", hdc, bmpi, bits);
TRACE(": create %ldx%ldx%d bitmap\n", bmpi->bmiHeader.biWidth, TRACE(": create %dx%dx%d bitmap\n", bmpi->bmiHeader.biWidth,
bmpi->bmiHeader.biHeight, bmpi->bmiHeader.biPlanes); bmpi->bmiHeader.biHeight, bmpi->bmiHeader.biPlanes);
return CreateDIBSection16(hdc, bmpi, 0, bits, 0, 0); return CreateDIBSection16(hdc, bmpi, 0, bits, 0, 0);
} }
@ -237,7 +237,7 @@ HPALETTE16 WINAPI WinGCreateHalfTonePalette16(void)
HBRUSH16 WINAPI WinGCreateHalfToneBrush16(HDC16 winDC, COLORREF col, HBRUSH16 WINAPI WinGCreateHalfToneBrush16(HDC16 winDC, COLORREF col,
WING_DITHER_TYPE type) WING_DITHER_TYPE type)
{ {
TRACE("(%d,%ld,%d)\n", winDC, col, type); TRACE("(%d,%d,%d)\n", winDC, col, type);
return CreateSolidBrush16(col); return CreateSolidBrush16(col);
} }