mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 20:33:22 +00:00
[WIN32K]
- Remove unused ROS specific NtGdiSetDIBits syscall svn path=/trunk/; revision=51936
This commit is contained in:
parent
00aee505e3
commit
71f6457399
4 changed files with 0 additions and 80 deletions
|
@ -111,19 +111,6 @@ NtGdiSetWindowOrgEx (
|
||||||
LPPOINT Point
|
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 */
|
#endif /* WIN32K_NTGDI_BAD_INCLUDED */
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -321,71 +321,6 @@ cleanup:
|
||||||
return result;
|
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
|
W32KAPI
|
||||||
INT
|
INT
|
||||||
APIENTRY
|
APIENTRY
|
||||||
|
|
|
@ -675,7 +675,6 @@ NtGdiDrawStream 3
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#ReactOS specific syscalls
|
#ReactOS specific syscalls
|
||||||
NtGdiSetDIBits 7
|
|
||||||
NtGdiSetViewportOrgEx 4
|
NtGdiSetViewportOrgEx 4
|
||||||
NtGdiSetWindowOrgEx 4
|
NtGdiSetWindowOrgEx 4
|
||||||
NtGdiGetFontFamilyInfo 4
|
NtGdiGetFontFamilyInfo 4
|
||||||
|
|
|
@ -675,7 +675,6 @@ SVC_(GdiDrawStream, 3)
|
||||||
|
|
||||||
|
|
||||||
// ReactOS, specific, syscalls)
|
// ReactOS, specific, syscalls)
|
||||||
SVC_(GdiSetDIBits, 7)
|
|
||||||
SVC_(GdiSetViewportOrgEx, 4)
|
SVC_(GdiSetViewportOrgEx, 4)
|
||||||
SVC_(GdiSetWindowOrgEx, 4)
|
SVC_(GdiSetWindowOrgEx, 4)
|
||||||
SVC_(GdiGetFontFamilyInfo, 4)
|
SVC_(GdiGetFontFamilyInfo, 4)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue