- Remove unused ROS specific NtGdiSetDIBits syscall

svn path=/trunk/; revision=51936
This commit is contained in:
Rafal Harabien 2011-05-26 21:25:57 +00:00
parent 00aee505e3
commit 71f6457399
4 changed files with 0 additions and 80 deletions

View file

@ -111,19 +111,6 @@ NtGdiSetWindowOrgEx (
LPPOINT Point
);
/* Use SetDIBitsToDevice in gdi32. */
INT
APIENTRY
NtGdiSetDIBits (
HDC hDC,
HBITMAP hBitmap,
UINT StartScan,
UINT ScanLines,
CONST VOID * Bits,
CONST BITMAPINFO * bmi,
UINT ColorUse
);
#endif /* WIN32K_NTGDI_BAD_INCLUDED */

View file

@ -321,71 +321,6 @@ cleanup:
return result;
}
// FIXME by Removing NtGdiSetDIBits!!!
// This is a victim of the Win32k Initialization BUG!!!!!
// Converts a DIB to a device-dependent bitmap
INT
APIENTRY
NtGdiSetDIBits(
HDC hDC,
HBITMAP hBitmap,
UINT StartScan,
UINT ScanLines,
CONST VOID *Bits,
CONST BITMAPINFO *bmi,
UINT ColorUse)
{
PDC Dc = NULL;
INT Ret;
NTSTATUS Status = STATUS_SUCCESS;
if (!Bits) return 0;
_SEH2_TRY
{
ProbeForRead(&bmi->bmiHeader.biSize, sizeof(DWORD), 1);
ProbeForRead(bmi, bmi->bmiHeader.biSize, 1);
ProbeForRead(bmi, DIB_BitmapInfoSize(bmi, ColorUse), 1);
ProbeForRead(Bits,
DIB_GetDIBImageBytes(bmi->bmiHeader.biWidth,
ScanLines,
bmi->bmiHeader.biBitCount),
1);
}
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
{
Status = _SEH2_GetExceptionCode();
}
_SEH2_END
if (!NT_SUCCESS(Status))
{
return 0;
}
/* Lock DC if asked to */
if(ColorUse == DIB_PAL_COLORS)
{
Dc = DC_LockDc(hDC);
if (NULL == Dc)
{
EngSetLastError(ERROR_INVALID_HANDLE);
return 0;
}
if (Dc->dctype == DC_TYPE_INFO)
{
DC_UnlockDc(Dc);
return 0;
}
}
Ret = IntSetDIBits(Dc, hBitmap, StartScan, ScanLines, Bits, bmi, ColorUse);
if(Dc) DC_UnlockDc(Dc);
return Ret;
}
W32KAPI
INT
APIENTRY

View file

@ -675,7 +675,6 @@ NtGdiDrawStream 3
#
#
#ReactOS specific syscalls
NtGdiSetDIBits 7
NtGdiSetViewportOrgEx 4
NtGdiSetWindowOrgEx 4
NtGdiGetFontFamilyInfo 4

View file

@ -675,7 +675,6 @@ SVC_(GdiDrawStream, 3)
// ReactOS, specific, syscalls)
SVC_(GdiSetDIBits, 7)
SVC_(GdiSetViewportOrgEx, 4)
SVC_(GdiSetWindowOrgEx, 4)
SVC_(GdiGetFontFamilyInfo, 4)