mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
Patch by Stefan Ginsberg (stefan__100__ AT hotmail DOT com): CLeanup win32k. Remove xpstubs.c.
svn path=/trunk/; revision=32435
This commit is contained in:
parent
9cd1948c7d
commit
cdf837bb71
5 changed files with 62 additions and 76 deletions
|
@ -11,43 +11,32 @@
|
|||
*/
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*
|
||||
* @unimplemented
|
||||
*/
|
||||
INT
|
||||
int
|
||||
STDCALL
|
||||
SetDIBitsToDevice(
|
||||
HDC hDC,
|
||||
int XDest,
|
||||
int YDest,
|
||||
DWORD Width,
|
||||
DWORD Height,
|
||||
int XSrc,
|
||||
int YSrc,
|
||||
UINT StartScan,
|
||||
UINT ScanLines,
|
||||
CONST VOID *Bits,
|
||||
CONST BITMAPINFO *lpbmi,
|
||||
UINT ColorUse)
|
||||
SetDIBits(HDC hdc,
|
||||
HBITMAP hbmp,
|
||||
UINT uStartScan,
|
||||
UINT cScanLines,
|
||||
CONST VOID *lpvBits,
|
||||
CONST BITMAPINFO *lpbmi,
|
||||
UINT fuColorUse)
|
||||
{
|
||||
return NtGdiSetDIBitsToDeviceInternal(hDC,
|
||||
XDest,
|
||||
YDest,
|
||||
Width,
|
||||
Height,
|
||||
XSrc,
|
||||
YSrc,
|
||||
StartScan,
|
||||
ScanLines,
|
||||
(LPBYTE)Bits,
|
||||
(LPBITMAPINFO)lpbmi,
|
||||
ColorUse,
|
||||
lpbmi->bmiHeader.biSizeImage,
|
||||
lpbmi->bmiHeader.biSize,
|
||||
FALSE,
|
||||
NULL);
|
||||
/* FIXME share memory */
|
||||
return NtGdiSetDIBits(hdc, hbmp, uStartScan, cScanLines, lpvBits, lpbmi, fuColorUse);
|
||||
}
|
||||
|
||||
HBITMAP
|
||||
STDCALL
|
||||
CreateDIBitmap(HDC hDc,
|
||||
const BITMAPINFOHEADER *Header,
|
||||
DWORD Init, LPCVOID Bits, const BITMAPINFO *Data,
|
||||
UINT ColorUse)
|
||||
{
|
||||
/* FIMXE we need do more thing in user mode */
|
||||
return NtGdiCreateDIBitmap(hDc, Header, Init, Bits, Data, ColorUse);
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
|
|
|
@ -47,20 +47,41 @@ StretchDIBits(HDC hdc,
|
|||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
* @implemented
|
||||
*
|
||||
*/
|
||||
int
|
||||
INT
|
||||
STDCALL
|
||||
SetDIBits(HDC hdc,
|
||||
HBITMAP hbmp,
|
||||
UINT uStartScan,
|
||||
UINT cScanLines,
|
||||
CONST VOID *lpvBits,
|
||||
CONST BITMAPINFO *lpbmi,
|
||||
UINT fuColorUse)
|
||||
SetDIBitsToDevice(
|
||||
HDC hDC,
|
||||
int XDest,
|
||||
int YDest,
|
||||
DWORD Width,
|
||||
DWORD Height,
|
||||
int XSrc,
|
||||
int YSrc,
|
||||
UINT StartScan,
|
||||
UINT ScanLines,
|
||||
CONST VOID *Bits,
|
||||
CONST BITMAPINFO *lpbmi,
|
||||
UINT ColorUse)
|
||||
{
|
||||
/* FIXME share memory */
|
||||
return NtGdiSetDIBits(hdc, hbmp, uStartScan, cScanLines, lpvBits, lpbmi, fuColorUse);
|
||||
return NtGdiSetDIBitsToDeviceInternal(hDC,
|
||||
XDest,
|
||||
YDest,
|
||||
Width,
|
||||
Height,
|
||||
XSrc,
|
||||
YSrc,
|
||||
StartScan,
|
||||
ScanLines,
|
||||
(LPBYTE)Bits,
|
||||
(LPBITMAPINFO)lpbmi,
|
||||
ColorUse,
|
||||
lpbmi->bmiHeader.biSizeImage,
|
||||
lpbmi->bmiHeader.biSize,
|
||||
FALSE,
|
||||
NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1770,17 +1791,6 @@ GdiResetDCEMF(HANDLE SpoolFileHandle,
|
|||
}
|
||||
|
||||
|
||||
HBITMAP
|
||||
STDCALL
|
||||
CreateDIBitmap(HDC hDc,
|
||||
const BITMAPINFOHEADER *Header,
|
||||
DWORD Init, LPCVOID Bits, const BITMAPINFO *Data,
|
||||
UINT ColorUse)
|
||||
{
|
||||
/* FIMXE we need do more thing in user mode */
|
||||
return NtGdiCreateDIBitmap(hDc, Header, Init, Bits, Data, ColorUse);
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
|
|
|
@ -2986,4 +2986,12 @@ NtGdiUnmapMemFont(
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
BOOL
|
||||
STDCALL
|
||||
EngControlSprites(
|
||||
IN WNDOBJ *pwo,
|
||||
IN FLONG fl)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
/*
|
||||
* Stubs for unimplemented WIN32K.SYS exports that are only available
|
||||
* in Windows XP and beyond ( i.e. a low priority for us right now )
|
||||
*/
|
||||
|
||||
#include <w32k.h>
|
||||
|
||||
#define STUB(x) void x(void) { DbgPrint("WIN32K: Stub for %s\n", #x); }
|
||||
#define UNIMPLEMENTED DbgPrint("(%s:%i) WIN32K: %s UNIMPLEMENTED\n", __FILE__, __LINE__, __FUNCTION__ )
|
||||
|
||||
BOOL
|
||||
STDCALL
|
||||
EngControlSprites(
|
||||
IN WNDOBJ *pwo,
|
||||
IN FLONG fl)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
return FALSE;
|
||||
}
|
||||
|
|
@ -170,7 +170,6 @@
|
|||
</directory>
|
||||
<directory name="stubs">
|
||||
<file>stubs.c</file>
|
||||
<file>xpstubs.c</file>
|
||||
</directory>
|
||||
</module>
|
||||
<module name="win32k" type="kernelmodedriver" installbase="system32" installname="win32k.sys" allowwarnings="true">
|
||||
|
|
Loading…
Reference in a new issue