This NtGdiCreateCompatableDC misspelling has annoyed me long enough now

svn path=/trunk/; revision=18034
This commit is contained in:
Gé van Geldorp 2005-09-24 19:30:12 +00:00
parent 58cb9dc1d9
commit 7ee5d3ea71
8 changed files with 14 additions and 14 deletions

View file

@ -173,7 +173,7 @@ BOOL FASTCALL DC_InvertXform(const XFORM *xformSrc, XFORM *xformDest);
/* User entry points */ /* User entry points */
BOOL STDCALL NtGdiCancelDC(HDC hDC); BOOL STDCALL NtGdiCancelDC(HDC hDC);
HDC STDCALL NtGdiCreateCompatableDC(HDC hDC); HDC STDCALL NtGdiCreateCompatibleDC(HDC hDC);
HDC STDCALL NtGdiCreateDC(PUNICODE_STRING Driver, HDC STDCALL NtGdiCreateDC(PUNICODE_STRING Driver,
PUNICODE_STRING Device, PUNICODE_STRING Device,
PUNICODE_STRING Output, PUNICODE_STRING Output,

View file

@ -53,7 +53,7 @@ CreateBrushIndirect@4
CreateColorSpaceA@4 CreateColorSpaceA@4
CreateColorSpaceW@4 CreateColorSpaceW@4
CreateCompatibleBitmap@12=NtGdiCreateCompatibleBitmap@12 CreateCompatibleBitmap@12=NtGdiCreateCompatibleBitmap@12
CreateCompatibleDC@4=NtGdiCreateCompatableDC@4 CreateCompatibleDC@4=NtGdiCreateCompatibleDC@4
CreateDCA@16 CreateDCA@16
CreateDCW@16 CreateDCW@16
CreateDIBPatternBrush@8 CreateDIBPatternBrush@8

View file

@ -1360,7 +1360,7 @@ NtUserDrawIconEx(
r.right = cxWidth; r.right = cxWidth;
r.bottom = cyWidth; r.bottom = cyWidth;
hdcOff = NtGdiCreateCompatableDC(hdc); hdcOff = NtGdiCreateCompatibleDC(hdc);
if(!hdcOff) if(!hdcOff)
goto done; goto done;
@ -1376,7 +1376,7 @@ NtUserDrawIconEx(
NtGdiSelectObject(hdcOff, hbmOff); NtGdiSelectObject(hdcOff, hbmOff);
} }
hdcMem = NtGdiCreateCompatableDC(hdc); hdcMem = NtGdiCreateCompatibleDC(hdc);
if(!hdcMem) if(!hdcMem)
goto cleanup; goto cleanup;

View file

@ -1232,7 +1232,7 @@ NtUserPaintDesktop(HDC hDC)
x = (sz.cx / 2) - (WinSta->cxWallpaper / 2); x = (sz.cx / 2) - (WinSta->cxWallpaper / 2);
y = (sz.cy / 2) - (WinSta->cyWallpaper / 2); y = (sz.cy / 2) - (WinSta->cyWallpaper / 2);
hWallpaperDC = NtGdiCreateCompatableDC(hDC); hWallpaperDC = NtGdiCreateCompatibleDC(hDC);
if(hWallpaperDC != NULL) if(hWallpaperDC != NULL)
{ {
HBITMAP hOldBitmap; HBITMAP hOldBitmap;

View file

@ -661,7 +661,7 @@ NtGdiGetPixel(HDC hDC, INT XPos, INT YPos)
if ( bInRect && Result == CLR_INVALID ) if ( bInRect && Result == CLR_INVALID )
{ {
// FIXME: create a 1x1 32BPP DIB, and blit to it // FIXME: create a 1x1 32BPP DIB, and blit to it
HDC hDCTmp = NtGdiCreateCompatableDC(hDC); HDC hDCTmp = NtGdiCreateCompatibleDC(hDC);
if ( hDCTmp ) if ( hDCTmp )
{ {
static const BITMAPINFOHEADER bih = { sizeof(BITMAPINFOHEADER), 1, 1, 1, 32, BI_RGB, 0, 0, 0, 0, 0 }; static const BITMAPINFOHEADER bih = { sizeof(BITMAPINFOHEADER), 1, 1, 1, 32, BI_RGB, 0, 0, 0, 0, 0 };
@ -860,13 +860,13 @@ NtGdiMaskBlt (
return NtGdiBitBlt(hdcDest, nXDest, nYDest, nWidth, nHeight, hdcSrc, nXSrc, nYSrc, FRGND_ROP3(dwRop)); return NtGdiBitBlt(hdcDest, nXDest, nYDest, nWidth, nHeight, hdcSrc, nXSrc, nYSrc, FRGND_ROP3(dwRop));
/* 1. make mask bitmap's dc */ /* 1. make mask bitmap's dc */
hDCMask = NtGdiCreateCompatableDC(hdcDest); hDCMask = NtGdiCreateCompatibleDC(hdcDest);
hOldMaskBitmap = (HBITMAP)NtGdiSelectObject(hDCMask, hbmMask); hOldMaskBitmap = (HBITMAP)NtGdiSelectObject(hDCMask, hbmMask);
/* 2. make masked Background bitmap */ /* 2. make masked Background bitmap */
/* 2.1 make bitmap */ /* 2.1 make bitmap */
hDC1 = NtGdiCreateCompatableDC(hdcDest); hDC1 = NtGdiCreateCompatibleDC(hdcDest);
hBitmap2 = NtGdiCreateCompatibleBitmap(hdcDest, nWidth, nHeight); hBitmap2 = NtGdiCreateCompatibleBitmap(hdcDest, nWidth, nHeight);
hOldBitmap2 = (HBITMAP)NtGdiSelectObject(hDC1, hBitmap2); hOldBitmap2 = (HBITMAP)NtGdiSelectObject(hDC1, hBitmap2);
@ -878,7 +878,7 @@ NtGdiMaskBlt (
/* 3. make masked Foreground bitmap */ /* 3. make masked Foreground bitmap */
/* 3.1 make bitmap */ /* 3.1 make bitmap */
hDC2 = NtGdiCreateCompatableDC(hdcDest); hDC2 = NtGdiCreateCompatibleDC(hdcDest);
hBitmap3 = NtGdiCreateCompatibleBitmap(hdcDest, nWidth, nHeight); hBitmap3 = NtGdiCreateCompatibleBitmap(hdcDest, nWidth, nHeight);
hOldBitmap3 = (HBITMAP)NtGdiSelectObject(hDC2, hBitmap3); hOldBitmap3 = (HBITMAP)NtGdiSelectObject(hDC2, hBitmap3);

View file

@ -139,7 +139,7 @@ NtGdiCancelDC(HDC hDC)
} }
HDC STDCALL HDC STDCALL
NtGdiCreateCompatableDC(HDC hDC) NtGdiCreateCompatibleDC(HDC hDC)
{ {
PDC NewDC, OrigDC; PDC NewDC, OrigDC;
HBITMAP hBitmap; HBITMAP hBitmap;
@ -808,7 +808,7 @@ IntGdiCreateDC(PUNICODE_STRING Driver,
if ((hNewDC = DC_FindOpenDC(Driver)) != NULL) if ((hNewDC = DC_FindOpenDC(Driver)) != NULL)
{ {
hDC = hNewDC; hDC = hNewDC;
return NtGdiCreateCompatableDC(hDC); return NtGdiCreateCompatibleDC(hDC);
} }
if (Driver != NULL && Driver->Buffer != NULL) if (Driver != NULL && Driver->Buffer != NULL)

View file

@ -544,7 +544,7 @@ INT STDCALL NtGdiStretchDIBits(HDC hDC,
return 0; return 0;
} }
hdcMem = NtGdiCreateCompatableDC(hDC); hdcMem = NtGdiCreateCompatibleDC(hDC);
hBitmap = NtGdiCreateCompatibleBitmap(hDC, BitsInfo->bmiHeader.biWidth, hBitmap = NtGdiCreateCompatibleBitmap(hDC, BitsInfo->bmiHeader.biWidth,
BitsInfo->bmiHeader.biHeight); BitsInfo->bmiHeader.biHeight);
hOldBitmap = NtGdiSelectObject(hdcMem, hBitmap); hOldBitmap = NtGdiSelectObject(hdcMem, hBitmap);
@ -772,7 +772,7 @@ HBITMAP STDCALL NtGdiCreateDIBSection(HDC hDC,
// If the reference hdc is null, take the desktop dc // If the reference hdc is null, take the desktop dc
if (hDC == 0) if (hDC == 0)
{ {
hDC = NtGdiCreateCompatableDC(0); hDC = NtGdiCreateCompatibleDC(0);
bDesktopDC = TRUE; bDesktopDC = TRUE;
} }

View file

@ -24,7 +24,7 @@ NtGdiCreateBitmap 5
NtGdiCreateBitmapIndirect 1 NtGdiCreateBitmapIndirect 1
NtGdiCreateColorSpace 1 NtGdiCreateColorSpace 1
NtGdiCreateCompatibleBitmap 3 NtGdiCreateCompatibleBitmap 3
NtGdiCreateCompatableDC 1 NtGdiCreateCompatibleDC 1
NtGdiCreateDC 4 NtGdiCreateDC 4
NtGdiCreateDIBitmap 6 NtGdiCreateDIBitmap 6
NtGdiCreateDIBBrush 4 NtGdiCreateDIBBrush 4