mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
I commited more files than I wanted by mistake. :( This patch reverses most of the changes and addes commit message for the others.
reactos/config - Reversed reactos/lib/gdi32/objects/bitblt.c - Reversed reactos/lib/kernel32/process/create.c - Added output of user mode exception address. reactos/lib/user32/controls/button.c - Fixed debug print reactos/lib/user32/windows/bitmap.c - Reversed reactos/ntoskrnl/cm/rtlfunc.c - Reversed reactos/ntoskrnl/io/driver.c - Reversed reactos/subsys/system/explorer/buildno.h - Updated reactos/subsys/system/explorer/explorer_intres.rc - Changed VK_S and VK_X to numeric values, because MinGW doesn't have these constants. reactos/subsys/system/explorer/makefile - Reversed reactos/subsys/win32k/ntuser/windc.c - Reversed svn path=/trunk/; revision=6255
This commit is contained in:
parent
3e4cc29925
commit
91aeffd931
7 changed files with 3143 additions and 3271 deletions
|
@ -1,38 +1,38 @@
|
|||
#
|
||||
# Architecture to build for
|
||||
#
|
||||
# Specify one of: i386
|
||||
# Possible values in the future: alpha,i386,m68k,mips,powerpc
|
||||
ARCH := i386
|
||||
|
||||
#
|
||||
# Whether to compile in the kernel debugger
|
||||
#
|
||||
KDBG := 0
|
||||
|
||||
#
|
||||
# Whether to compile for debugging
|
||||
#
|
||||
DBG := 0
|
||||
|
||||
#
|
||||
# Whether to compile a multiprocessor or single processor version
|
||||
#
|
||||
MP := 0
|
||||
|
||||
#
|
||||
# Whether to compile for ACPI compliant systems
|
||||
#
|
||||
ACPI := 1
|
||||
|
||||
#
|
||||
# Whether to use Structured Exception Handling
|
||||
#
|
||||
SEH := 0
|
||||
|
||||
|
||||
#
|
||||
# Which version of NDIS do we support up to?
|
||||
#
|
||||
#NDISVERSION=NDIS50
|
||||
|
||||
#
|
||||
# Architecture to build for
|
||||
#
|
||||
# Specify one of: i386
|
||||
# Possible values in the future: alpha,i386,m68k,mips,powerpc
|
||||
ARCH := i386
|
||||
|
||||
#
|
||||
# Whether to compile in the kernel debugger
|
||||
#
|
||||
KDBG := 0
|
||||
|
||||
#
|
||||
# Whether to compile for debugging
|
||||
#
|
||||
DBG := 0
|
||||
|
||||
#
|
||||
# Whether to compile a multiprocessor or single processor version
|
||||
#
|
||||
MP := 0
|
||||
|
||||
#
|
||||
# Whether to compile for ACPI compliant systems
|
||||
#
|
||||
ACPI := 0
|
||||
|
||||
#
|
||||
# Whether to use Structured Exception Handling
|
||||
#
|
||||
SEH := 0
|
||||
|
||||
|
||||
#
|
||||
# Which version of NDIS do we support up to?
|
||||
#
|
||||
#NDISVERSION=NDIS50
|
||||
|
||||
|
|
|
@ -1,386 +1,386 @@
|
|||
#ifdef UNICODE
|
||||
#undef UNICODE
|
||||
#endif
|
||||
|
||||
#undef WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <ddk/ntddk.h>
|
||||
#include <win32k/kapi.h>
|
||||
#include <debug.h>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
STDCALL
|
||||
BitBlt(HDC hDCDest,
|
||||
INT XDest,
|
||||
INT YDest,
|
||||
INT Width,
|
||||
INT Height,
|
||||
HDC hDCSrc,
|
||||
INT XSrc,
|
||||
INT YSrc,
|
||||
DWORD ROP)
|
||||
{
|
||||
return NtGdiBitBlt(hDCDest, XDest, YDest, Width, Height, hDCSrc, XSrc, YSrc, ROP);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
HBITMAP
|
||||
STDCALL
|
||||
CreateBitmap(INT Width,
|
||||
INT Height,
|
||||
UINT Planes,
|
||||
UINT BitsPerPel,
|
||||
CONST VOID *Bits)
|
||||
{
|
||||
return NtGdiCreateBitmap(Width, Height, Planes, BitsPerPel, Bits);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
HBITMAP
|
||||
STDCALL
|
||||
CreateBitmapIndirect(CONST BITMAP *BM)
|
||||
{
|
||||
return NtGdiCreateBitmapIndirect(BM);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
HBITMAP
|
||||
STDCALL
|
||||
CreateCompatibleBitmap(HDC hDC,
|
||||
INT Width,
|
||||
INT Height)
|
||||
{
|
||||
return NtGdiCreateCompatibleBitmap(hDC, Width, Height);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
HBITMAP
|
||||
STDCALL
|
||||
CreateDiscardableBitmap(HDC hDC,
|
||||
INT Width,
|
||||
INT Height)
|
||||
{
|
||||
return NtGdiCreateDiscardableBitmap(hDC, Width, Height);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
HBITMAP
|
||||
STDCALL
|
||||
CreateDIBitmap(HDC hDC,
|
||||
CONST BITMAPINFOHEADER *bmih,
|
||||
DWORD Init,
|
||||
CONST VOID *bInit,
|
||||
CONST BITMAPINFO *bmi,
|
||||
UINT Usage)
|
||||
{
|
||||
return NtGdiCreateDIBitmap(hDC, bmih, Init, bInit, bmi, Usage);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
LONG
|
||||
STDCALL
|
||||
GetBitmapBits(HBITMAP hBitmap,
|
||||
LONG Count,
|
||||
LPVOID Bits)
|
||||
{
|
||||
return NtGdiGetBitmapBits(hBitmap, Count, Bits);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
STDCALL
|
||||
GetBitmapDimensionEx(HBITMAP hBitmap,
|
||||
LPSIZE Dimension)
|
||||
{
|
||||
return NtGdiGetBitmapDimensionEx(hBitmap, Dimension);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
int
|
||||
STDCALL
|
||||
GetDIBits(HDC hDC,
|
||||
HBITMAP hBitmap,
|
||||
UINT StartScan,
|
||||
UINT ScanLines,
|
||||
LPVOID Bits,
|
||||
LPBITMAPINFO bi,
|
||||
UINT Usage)
|
||||
{
|
||||
return NtGdiGetDIBits(hDC, hBitmap, StartScan, ScanLines, Bits, bi, Usage);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
STDCALL
|
||||
MaskBlt(HDC hDCDest,
|
||||
INT XDest,
|
||||
INT YDest,
|
||||
INT Width,
|
||||
INT Height,
|
||||
HDC hDCSrc,
|
||||
INT XSrc,
|
||||
INT YSrc,
|
||||
HBITMAP hMaskBitmap,
|
||||
INT xMask,
|
||||
INT yMask,
|
||||
DWORD ROP)
|
||||
{
|
||||
return NtGdiMaskBlt(hDCDest, XDest, YDest, Width, Height, hDCSrc, XSrc, YSrc, hMaskBitmap, xMask, yMask, ROP);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
STDCALL
|
||||
PlgBlt(HDC hDCDest,
|
||||
CONST POINT *Point,
|
||||
HDC hDCSrc,
|
||||
INT XSrc,
|
||||
INT YSrc,
|
||||
INT Width,
|
||||
INT Height,
|
||||
HBITMAP hMaskBitmap,
|
||||
INT xMask,
|
||||
INT yMask)
|
||||
{
|
||||
return NtGdiPlgBlt(hDCDest, Point, hDCSrc, XSrc, YSrc, Width, Height, hMaskBitmap, xMask, yMask);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
LONG
|
||||
STDCALL
|
||||
SetBitmapBits(HBITMAP hBitmap,
|
||||
DWORD Bytes,
|
||||
CONST VOID *Bits)
|
||||
{
|
||||
return NtGdiSetBitmapBits(hBitmap, Bytes, Bits);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
int
|
||||
STDCALL
|
||||
SetDIBits(HDC hDC,
|
||||
HBITMAP hBitmap,
|
||||
UINT StartScan,
|
||||
UINT ScanLines,
|
||||
CONST VOID *Bits,
|
||||
CONST BITMAPINFO *bmi,
|
||||
UINT ColorUse)
|
||||
{
|
||||
return NtGdiSetDIBits(hDC, hBitmap, StartScan, ScanLines, Bits, bmi, ColorUse);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
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 *bmi,
|
||||
UINT ColorUse)
|
||||
{
|
||||
return NtGdiSetDIBitsToDevice(hDC, XDest, YDest, Width, Height, XSrc, YSrc, StartScan, ScanLines,
|
||||
Bits, bmi, ColorUse);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
STDCALL
|
||||
StretchBlt(
|
||||
HDC hdcDest, // handle to destination DC
|
||||
int nXOriginDest, // x-coord of destination upper-left corner
|
||||
int nYOriginDest, // y-coord of destination upper-left corner
|
||||
int nWidthDest, // width of destination rectangle
|
||||
int nHeightDest, // height of destination rectangle
|
||||
HDC hdcSrc, // handle to source DC
|
||||
int nXOriginSrc, // x-coord of source upper-left corner
|
||||
int nYOriginSrc, // y-coord of source upper-left corner
|
||||
int nWidthSrc, // width of source rectangle
|
||||
int nHeightSrc, // height of source rectangle
|
||||
DWORD dwRop // raster operation code
|
||||
)
|
||||
{
|
||||
//SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
if ( (nWidthDest==nWidthSrc) && (nHeightDest==nHeightSrc) )
|
||||
{
|
||||
return BitBlt(hdcDest,
|
||||
nXOriginDest, // x-coord of destination upper-left corner
|
||||
nYOriginDest, // y-coord of destination upper-left corner
|
||||
nWidthDest, // width of destination rectangle
|
||||
nHeightDest, // height of destination rectangle
|
||||
hdcSrc, // handle to source DC
|
||||
nXOriginSrc, // x-coordinate of source upper-left corner
|
||||
nYOriginSrc, // y-coordinate of source upper-left corner
|
||||
dwRop // raster operation code
|
||||
);
|
||||
}
|
||||
|
||||
DPRINT1("FIXME: StretchBlt can only Blt, not Stretch!\n");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
int
|
||||
STDCALL
|
||||
StretchDIBits(HDC hDC,
|
||||
INT XDest,
|
||||
INT YDest,
|
||||
INT DestWidth,
|
||||
INT DestHeight,
|
||||
INT XSrc,
|
||||
INT YSrc,
|
||||
INT SrcWidth,
|
||||
INT SrcHeight,
|
||||
CONST VOID *Bits,
|
||||
CONST BITMAPINFO *BitsInfo,
|
||||
UINT Usage,
|
||||
DWORD ROP)
|
||||
{
|
||||
return NtGdiStretchDIBits(hDC, XDest, YDest, DestWidth, DestHeight, XSrc, YSrc,
|
||||
SrcWidth, SrcHeight, Bits, BitsInfo, Usage, ROP);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
HBITMAP
|
||||
STDCALL
|
||||
CreateDIBSection(HDC hDC,
|
||||
CONST BITMAPINFO *bmi,
|
||||
UINT Usage,
|
||||
VOID *Bits,
|
||||
HANDLE hSection,
|
||||
DWORD dwOffset)
|
||||
{
|
||||
return NtGdiCreateDIBSection(hDC, bmi, Usage, Bits, hSection, dwOffset);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
COLORREF
|
||||
STDCALL
|
||||
SetPixel(HDC hDC,
|
||||
INT X,
|
||||
INT Y,
|
||||
COLORREF Color)
|
||||
{
|
||||
return NtGdiSetPixel(hDC, X, Y, Color);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOL STDCALL
|
||||
PatBlt(HDC hDC, INT Top, INT Left, INT Width, INT Height, ULONG Rop)
|
||||
{
|
||||
return(NtGdiPatBlt(hDC, Top, Left, Width, Height, Rop));
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
WINBOOL
|
||||
STDCALL
|
||||
PolyPatBlt(HDC hDC,DWORD dwRop,PPATRECT pRects,int cRects,ULONG Reserved)
|
||||
{
|
||||
return NtGdiPolyPatBlt(hDC,dwRop,pRects,cRects,Reserved);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
BOOL STDCALL NtGdiExtFloodFill(HDC hDC, INT XStart, INT YStart, COLORREF Color, UINT FillType)
|
||||
BOOL STDCALL NtGdiFloodFill(HDC hDC, INT XStart, INT YStart, COLORREF Fill)
|
||||
UINT STDCALL NtGdiGetDIBColorTable(HDC hDC, UINT StartIndex, UINT Entries, RGBQUAD *Colors)
|
||||
COLORREF STDCALL NtGdiGetPixel(HDC hDC,
|
||||
INT XPos,
|
||||
INT YPos)
|
||||
BOOL STDCALL NtGdiSetBitmapDimensionEx(HBITMAP hBitmap,
|
||||
INT Width,
|
||||
INT Height,
|
||||
LPSIZE Size)
|
||||
UINT STDCALL NtGdiSetDIBColorTable(HDC hDC,
|
||||
UINT StartIndex,
|
||||
UINT Entries,
|
||||
CONST RGBQUAD *Colors)
|
||||
BOOL STDCALL NtGdiSetPixelV(HDC hDC,
|
||||
INT X,
|
||||
INT Y,
|
||||
COLORREF Color)
|
||||
BOOL STDCALL NtGdiStretchBlt(HDC hDCDest,
|
||||
INT XOriginDest,
|
||||
INT YOriginDest,
|
||||
INT WidthDest,
|
||||
INT HeightDest,
|
||||
HDC hDCSrc,
|
||||
INT XOriginSrc,
|
||||
INT YOriginSrc,
|
||||
INT WidthSrc,
|
||||
INT HeightSrc,
|
||||
DWORD ROP)
|
||||
|
||||
INT BITMAPOBJ_GetWidthBytes (INT bmWidth, INT bpp)
|
||||
HBITMAP BITMAPOBJ_CopyBitmap(HBITMAP hBitmap)
|
||||
int DIB_GetDIBWidthBytes(int width, int depth)
|
||||
int DIB_GetDIBImageBytes (int width, int height, int depth)
|
||||
int DIB_BitmapInfoSize (const BITMAPINFO * info, WORD coloruse)
|
||||
|
||||
*/
|
||||
#ifdef UNICODE
|
||||
#undef UNICODE
|
||||
#endif
|
||||
|
||||
#undef WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <ddk/ntddk.h>
|
||||
#include <win32k/kapi.h>
|
||||
#include <debug.h>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
STDCALL
|
||||
BitBlt(HDC hDCDest,
|
||||
INT XDest,
|
||||
INT YDest,
|
||||
INT Width,
|
||||
INT Height,
|
||||
HDC hDCSrc,
|
||||
INT XSrc,
|
||||
INT YSrc,
|
||||
DWORD ROP)
|
||||
{
|
||||
return NtGdiBitBlt(hDCDest, XDest, YDest, Width, Height, hDCSrc, XSrc, YSrc, ROP);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
HBITMAP
|
||||
STDCALL
|
||||
CreateBitmap(INT Width,
|
||||
INT Height,
|
||||
UINT Planes,
|
||||
UINT BitsPerPel,
|
||||
CONST VOID *Bits)
|
||||
{
|
||||
return NtGdiCreateBitmap(Width, Height, Planes, BitsPerPel, Bits);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
HBITMAP
|
||||
STDCALL
|
||||
CreateBitmapIndirect(CONST BITMAP *BM)
|
||||
{
|
||||
return NtGdiCreateBitmapIndirect(BM);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
HBITMAP
|
||||
STDCALL
|
||||
CreateCompatibleBitmap(HDC hDC,
|
||||
INT Width,
|
||||
INT Height)
|
||||
{
|
||||
return NtGdiCreateCompatibleBitmap(hDC, Width, Height);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
HBITMAP
|
||||
STDCALL
|
||||
CreateDiscardableBitmap(HDC hDC,
|
||||
INT Width,
|
||||
INT Height)
|
||||
{
|
||||
return NtGdiCreateDiscardableBitmap(hDC, Width, Height);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
HBITMAP
|
||||
STDCALL
|
||||
CreateDIBitmap(HDC hDC,
|
||||
CONST BITMAPINFOHEADER *bmih,
|
||||
DWORD Init,
|
||||
CONST VOID *bInit,
|
||||
CONST BITMAPINFO *bmi,
|
||||
UINT Usage)
|
||||
{
|
||||
return NtGdiCreateDIBitmap(hDC, bmih, Init, bInit, bmi, Usage);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
LONG
|
||||
STDCALL
|
||||
GetBitmapBits(HBITMAP hBitmap,
|
||||
LONG Count,
|
||||
LPVOID Bits)
|
||||
{
|
||||
return NtGdiGetBitmapBits(hBitmap, Count, Bits);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
STDCALL
|
||||
GetBitmapDimensionEx(HBITMAP hBitmap,
|
||||
LPSIZE Dimension)
|
||||
{
|
||||
return NtGdiGetBitmapDimensionEx(hBitmap, Dimension);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
int
|
||||
STDCALL
|
||||
GetDIBits(HDC hDC,
|
||||
HBITMAP hBitmap,
|
||||
UINT StartScan,
|
||||
UINT ScanLines,
|
||||
LPVOID Bits,
|
||||
LPBITMAPINFO bi,
|
||||
UINT Usage)
|
||||
{
|
||||
return NtGdiGetDIBits(hDC, hBitmap, StartScan, ScanLines, Bits, bi, Usage);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
STDCALL
|
||||
MaskBlt(HDC hDCDest,
|
||||
INT XDest,
|
||||
INT YDest,
|
||||
INT Width,
|
||||
INT Height,
|
||||
HDC hDCSrc,
|
||||
INT XSrc,
|
||||
INT YSrc,
|
||||
HBITMAP hMaskBitmap,
|
||||
INT xMask,
|
||||
INT yMask,
|
||||
DWORD ROP)
|
||||
{
|
||||
return NtGdiMaskBlt(hDCDest, XDest, YDest, Width, Height, hDCSrc, XSrc, YSrc, hMaskBitmap, xMask, yMask, ROP);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
STDCALL
|
||||
PlgBlt(HDC hDCDest,
|
||||
CONST POINT *Point,
|
||||
HDC hDCSrc,
|
||||
INT XSrc,
|
||||
INT YSrc,
|
||||
INT Width,
|
||||
INT Height,
|
||||
HBITMAP hMaskBitmap,
|
||||
INT xMask,
|
||||
INT yMask)
|
||||
{
|
||||
return NtGdiPlgBlt(hDCDest, Point, hDCSrc, XSrc, YSrc, Width, Height, hMaskBitmap, xMask, yMask);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
LONG
|
||||
STDCALL
|
||||
SetBitmapBits(HBITMAP hBitmap,
|
||||
DWORD Bytes,
|
||||
CONST VOID *Bits)
|
||||
{
|
||||
return NtGdiSetBitmapBits(hBitmap, Bytes, Bits);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
int
|
||||
STDCALL
|
||||
SetDIBits(HDC hDC,
|
||||
HBITMAP hBitmap,
|
||||
UINT StartScan,
|
||||
UINT ScanLines,
|
||||
CONST VOID *Bits,
|
||||
CONST BITMAPINFO *bmi,
|
||||
UINT ColorUse)
|
||||
{
|
||||
return NtGdiSetDIBits(hDC, hBitmap, StartScan, ScanLines, Bits, bmi, ColorUse);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
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 *bmi,
|
||||
UINT ColorUse)
|
||||
{
|
||||
return NtGdiSetDIBitsToDevice(hDC, XDest, YDest, Width, Height, XSrc, YSrc, StartScan, ScanLines,
|
||||
Bits, bmi, ColorUse);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
STDCALL
|
||||
StretchBlt(
|
||||
HDC hdcDest, // handle to destination DC
|
||||
int nXOriginDest, // x-coord of destination upper-left corner
|
||||
int nYOriginDest, // y-coord of destination upper-left corner
|
||||
int nWidthDest, // width of destination rectangle
|
||||
int nHeightDest, // height of destination rectangle
|
||||
HDC hdcSrc, // handle to source DC
|
||||
int nXOriginSrc, // x-coord of source upper-left corner
|
||||
int nYOriginSrc, // y-coord of source upper-left corner
|
||||
int nWidthSrc, // width of source rectangle
|
||||
int nHeightSrc, // height of source rectangle
|
||||
DWORD dwRop // raster operation code
|
||||
)
|
||||
{
|
||||
//SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
if ( (nWidthDest==nWidthSrc) && (nHeightDest==nHeightSrc) )
|
||||
{
|
||||
return BitBlt(hdcDest,
|
||||
nXOriginDest, // x-coord of destination upper-left corner
|
||||
nYOriginDest, // y-coord of destination upper-left corner
|
||||
nWidthDest, // width of destination rectangle
|
||||
nHeightDest, // height of destination rectangle
|
||||
hdcSrc, // handle to source DC
|
||||
nXOriginSrc, // x-coordinate of source upper-left corner
|
||||
nYOriginSrc, // y-coordinate of source upper-left corner
|
||||
dwRop // raster operation code
|
||||
);
|
||||
}
|
||||
|
||||
DPRINT1("FIXME: StretchBlt can only Blt, not Stretch!\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
int
|
||||
STDCALL
|
||||
StretchDIBits(HDC hDC,
|
||||
INT XDest,
|
||||
INT YDest,
|
||||
INT DestWidth,
|
||||
INT DestHeight,
|
||||
INT XSrc,
|
||||
INT YSrc,
|
||||
INT SrcWidth,
|
||||
INT SrcHeight,
|
||||
CONST VOID *Bits,
|
||||
CONST BITMAPINFO *BitsInfo,
|
||||
UINT Usage,
|
||||
DWORD ROP)
|
||||
{
|
||||
return NtGdiStretchDIBits(hDC, XDest, YDest, DestWidth, DestHeight, XSrc, YSrc,
|
||||
SrcWidth, SrcHeight, Bits, BitsInfo, Usage, ROP);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
HBITMAP
|
||||
STDCALL
|
||||
CreateDIBSection(HDC hDC,
|
||||
CONST BITMAPINFO *bmi,
|
||||
UINT Usage,
|
||||
VOID *Bits,
|
||||
HANDLE hSection,
|
||||
DWORD dwOffset)
|
||||
{
|
||||
return NtGdiCreateDIBSection(hDC, bmi, Usage, Bits, hSection, dwOffset);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
COLORREF
|
||||
STDCALL
|
||||
SetPixel(HDC hDC,
|
||||
INT X,
|
||||
INT Y,
|
||||
COLORREF Color)
|
||||
{
|
||||
return NtGdiSetPixel(hDC, X, Y, Color);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOL STDCALL
|
||||
PatBlt(HDC hDC, INT Top, INT Left, INT Width, INT Height, ULONG Rop)
|
||||
{
|
||||
return(NtGdiPatBlt(hDC, Top, Left, Width, Height, Rop));
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
WINBOOL
|
||||
STDCALL
|
||||
PolyPatBlt(HDC hDC,DWORD dwRop,PPATRECT pRects,int cRects,ULONG Reserved)
|
||||
{
|
||||
return NtGdiPolyPatBlt(hDC,dwRop,pRects,cRects,Reserved);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
BOOL STDCALL NtGdiExtFloodFill(HDC hDC, INT XStart, INT YStart, COLORREF Color, UINT FillType)
|
||||
BOOL STDCALL NtGdiFloodFill(HDC hDC, INT XStart, INT YStart, COLORREF Fill)
|
||||
UINT STDCALL NtGdiGetDIBColorTable(HDC hDC, UINT StartIndex, UINT Entries, RGBQUAD *Colors)
|
||||
COLORREF STDCALL NtGdiGetPixel(HDC hDC,
|
||||
INT XPos,
|
||||
INT YPos)
|
||||
BOOL STDCALL NtGdiSetBitmapDimensionEx(HBITMAP hBitmap,
|
||||
INT Width,
|
||||
INT Height,
|
||||
LPSIZE Size)
|
||||
UINT STDCALL NtGdiSetDIBColorTable(HDC hDC,
|
||||
UINT StartIndex,
|
||||
UINT Entries,
|
||||
CONST RGBQUAD *Colors)
|
||||
BOOL STDCALL NtGdiSetPixelV(HDC hDC,
|
||||
INT X,
|
||||
INT Y,
|
||||
COLORREF Color)
|
||||
BOOL STDCALL NtGdiStretchBlt(HDC hDCDest,
|
||||
INT XOriginDest,
|
||||
INT YOriginDest,
|
||||
INT WidthDest,
|
||||
INT HeightDest,
|
||||
HDC hDCSrc,
|
||||
INT XOriginSrc,
|
||||
INT YOriginSrc,
|
||||
INT WidthSrc,
|
||||
INT HeightSrc,
|
||||
DWORD ROP)
|
||||
|
||||
INT BITMAPOBJ_GetWidthBytes (INT bmWidth, INT bpp)
|
||||
HBITMAP BITMAPOBJ_CopyBitmap(HBITMAP hBitmap)
|
||||
int DIB_GetDIBWidthBytes(int width, int depth)
|
||||
int DIB_GetDIBImageBytes (int width, int height, int depth)
|
||||
int DIB_BitmapInfoSize (const BITMAPINFO * info, WORD coloruse)
|
||||
|
||||
*/
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,85 +1,85 @@
|
|||
#
|
||||
# ReactOS explorer
|
||||
#
|
||||
# Makefile
|
||||
#
|
||||
|
||||
PATH_TO_TOP = ../../..
|
||||
|
||||
TARGET_TYPE = program
|
||||
|
||||
TARGET_APPTYPE = windows
|
||||
|
||||
TARGET_NAME = explorer
|
||||
|
||||
TARGET_CFLAGS = -g3 -fexceptions -Os -DNDEBUG -DWIN32 -D_ROS_ -Wall -D_WIN32_IE=0x0501 -D_WIN32_WINNT=0x0501
|
||||
|
||||
TARGET_CPPFLAGS = -g3 -fexceptions -Os -DNDEBUG -DWIN32 -D_ROS_ -Wall -D_WIN32_IE=0x0501 -D_WIN32_WINNT=0x0501
|
||||
|
||||
TARGET_RCFLAGS = -DNDEBUG -DWIN32 -D_ROS_
|
||||
|
||||
ifdef UNICODE
|
||||
TARGET_CFLAGS += -DUNICODE
|
||||
TARGET_CPPFLAGS += -DUNICODE
|
||||
# MK_DEFENTRY = _wWinMain@16
|
||||
endif
|
||||
|
||||
VPATH += shell
|
||||
VPATH += utility
|
||||
VPATH += taskbar
|
||||
VPATH += desktop
|
||||
VPATH += dialogs
|
||||
|
||||
WINE_MODE = yes
|
||||
|
||||
WINE_RC = $(TARGET_NAME)
|
||||
|
||||
WINE_INCLUDE = ./
|
||||
|
||||
TARGET_GCCLIBS = comctl32 ole32 uuid stdc++
|
||||
|
||||
all: buildno.h explorer.exe
|
||||
@strip explorer.exe
|
||||
|
||||
buildno.h: ../../../include/reactos/buildno.h
|
||||
updatebuildno
|
||||
|
||||
TARGET_SDKLIBS = \
|
||||
kernel32.a \
|
||||
user32.a \
|
||||
gdi32.a \
|
||||
advapi32.a \
|
||||
version.a
|
||||
|
||||
TARGET_OBJECTS = \
|
||||
startup.o \
|
||||
shellclasses.o \
|
||||
utility.o \
|
||||
window.o \
|
||||
dragdropimpl.o \
|
||||
shellbrowserimpl.o \
|
||||
explorer.o \
|
||||
entries.o \
|
||||
winfs.o \
|
||||
unixfs.o \
|
||||
shellfs.o \
|
||||
mainframe.o \
|
||||
filechild.o \
|
||||
pane.o \
|
||||
shellbrowser.o \
|
||||
desktop.o \
|
||||
desktopbar.o \
|
||||
taskbar.o \
|
||||
startmenu.o \
|
||||
traynotify.o \
|
||||
quicklaunch.o \
|
||||
searchprogram.o
|
||||
|
||||
include $(PATH_TO_TOP)/rules.mak
|
||||
|
||||
include $(TOOLS_PATH)/helper.mk
|
||||
|
||||
# overide LD_CC to use g++ for linking of the executable
|
||||
LD_CC = $(CXX)
|
||||
|
||||
# EOF
|
||||
#
|
||||
# ReactOS explorer
|
||||
#
|
||||
# Makefile
|
||||
#
|
||||
|
||||
PATH_TO_TOP = ../../..
|
||||
|
||||
TARGET_TYPE = program
|
||||
|
||||
TARGET_APPTYPE = windows
|
||||
|
||||
TARGET_NAME = explorer
|
||||
|
||||
TARGET_CFLAGS = -fexceptions -Os -DNDEBUG -DWIN32 -D_ROS_ -Wall -D_WIN32_IE=0x0501 -D_WIN32_WINNT=0x0501
|
||||
|
||||
TARGET_CPPFLAGS = -fexceptions -Os -DNDEBUG -DWIN32 -D_ROS_ -Wall -D_WIN32_IE=0x0501 -D_WIN32_WINNT=0x0501
|
||||
|
||||
TARGET_RCFLAGS = -DNDEBUG -DWIN32 -D_ROS_
|
||||
|
||||
ifdef UNICODE
|
||||
TARGET_CFLAGS += -DUNICODE
|
||||
TARGET_CPPFLAGS += -DUNICODE
|
||||
# MK_DEFENTRY = _wWinMain@16
|
||||
endif
|
||||
|
||||
VPATH += shell
|
||||
VPATH += utility
|
||||
VPATH += taskbar
|
||||
VPATH += desktop
|
||||
VPATH += dialogs
|
||||
|
||||
WINE_MODE = yes
|
||||
|
||||
WINE_RC = $(TARGET_NAME)
|
||||
|
||||
WINE_INCLUDE = ./
|
||||
|
||||
TARGET_GCCLIBS = comctl32 ole32 uuid stdc++
|
||||
|
||||
all: buildno.h explorer.exe
|
||||
@strip explorer.exe
|
||||
|
||||
buildno.h: ../../../include/reactos/buildno.h
|
||||
updatebuildno
|
||||
|
||||
TARGET_SDKLIBS = \
|
||||
kernel32.a \
|
||||
user32.a \
|
||||
gdi32.a \
|
||||
advapi32.a \
|
||||
version.a
|
||||
|
||||
TARGET_OBJECTS = \
|
||||
startup.o \
|
||||
shellclasses.o \
|
||||
utility.o \
|
||||
window.o \
|
||||
dragdropimpl.o \
|
||||
shellbrowserimpl.o \
|
||||
explorer.o \
|
||||
entries.o \
|
||||
winfs.o \
|
||||
unixfs.o \
|
||||
shellfs.o \
|
||||
mainframe.o \
|
||||
filechild.o \
|
||||
pane.o \
|
||||
shellbrowser.o \
|
||||
desktop.o \
|
||||
desktopbar.o \
|
||||
taskbar.o \
|
||||
startmenu.o \
|
||||
traynotify.o \
|
||||
quicklaunch.o \
|
||||
searchprogram.o
|
||||
|
||||
include $(PATH_TO_TOP)/rules.mak
|
||||
|
||||
include $(TOOLS_PATH)/helper.mk
|
||||
|
||||
# overide LD_CC to use g++ for linking of the executable
|
||||
LD_CC = $(CXX)
|
||||
|
||||
# EOF
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue