mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 23:14:53 +00:00
[WIN32K]: Fix large amount of set-but-unused variables. Most of these seemed to be old/unfinished code, however in IntGdiPaintRgn an actual bug seems to have been found.
[WIN32K]: Make IntGdiPaintRgn return the status of the operation, not always TRUE. svn path=/trunk/; revision=48712
This commit is contained in:
parent
b687dc9462
commit
b0e67ed0fb
|
@ -82,7 +82,6 @@ DIB_1BPP_BitBltSrcCopy_From1BPP (
|
||||||
int dy2; // dest y end
|
int dy2; // dest y end
|
||||||
int sy1; // src y start
|
int sy1; // src y start
|
||||||
|
|
||||||
int dx;
|
|
||||||
int shift;
|
int shift;
|
||||||
BYTE srcmask, dstmask, xormask;
|
BYTE srcmask, dstmask, xormask;
|
||||||
|
|
||||||
|
@ -139,12 +138,10 @@ DIB_1BPP_BitBltSrcCopy_From1BPP (
|
||||||
pd = d;
|
pd = d;
|
||||||
ps = s;
|
ps = s;
|
||||||
srcmask = 0xff;
|
srcmask = 0xff;
|
||||||
dx = dwx; /* dest x for this pass */
|
|
||||||
if ( dwx < dl )
|
if ( dwx < dl )
|
||||||
{
|
{
|
||||||
int diff = dl-dwx;
|
int diff = dl-dwx;
|
||||||
srcmask &= (1<<(8-diff))-1;
|
srcmask &= (1<<(8-diff))-1;
|
||||||
dx = dl;
|
|
||||||
}
|
}
|
||||||
if ( dwx+7 > dr )
|
if ( dwx+7 > dr )
|
||||||
{
|
{
|
||||||
|
|
|
@ -263,7 +263,7 @@ DIB_8BPP_TransparentBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
||||||
RECTL* DestRect, RECTL *SourceRect,
|
RECTL* DestRect, RECTL *SourceRect,
|
||||||
XLATEOBJ *ColorTranslation, ULONG iTransColor)
|
XLATEOBJ *ColorTranslation, ULONG iTransColor)
|
||||||
{
|
{
|
||||||
ULONG RoundedRight, X, Y, SourceX = 0, SourceY = 0, Source, wd, Dest;
|
ULONG RoundedRight, X, Y, SourceX = 0, SourceY = 0, Source, Dest;
|
||||||
ULONG *DestBits;
|
ULONG *DestBits;
|
||||||
|
|
||||||
LONG DstHeight;
|
LONG DstHeight;
|
||||||
|
@ -279,7 +279,6 @@ DIB_8BPP_TransparentBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
||||||
RoundedRight = DestRect->right - ((DestRect->right - DestRect->left) & 0x3);
|
RoundedRight = DestRect->right - ((DestRect->right - DestRect->left) & 0x3);
|
||||||
DestBits = (ULONG*)((PBYTE)DestSurf->pvScan0 + DestRect->left +
|
DestBits = (ULONG*)((PBYTE)DestSurf->pvScan0 + DestRect->left +
|
||||||
(DestRect->top * DestSurf->lDelta));
|
(DestRect->top * DestSurf->lDelta));
|
||||||
wd = DestSurf->lDelta - (DestRect->right - DestRect->left);
|
|
||||||
|
|
||||||
for(Y = DestRect->top; Y < DestRect->bottom; Y++)
|
for(Y = DestRect->top; Y < DestRect->bottom; Y++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -307,11 +307,9 @@ EngBitBlt(SURFOBJ *DestObj,
|
||||||
POINTL Pt;
|
POINTL Pt;
|
||||||
ULONG Direction;
|
ULONG Direction;
|
||||||
BOOL UsesSource;
|
BOOL UsesSource;
|
||||||
BOOL UsesPattern;
|
|
||||||
POINTL AdjustedBrushOrigin;
|
POINTL AdjustedBrushOrigin;
|
||||||
|
|
||||||
UsesSource = ROP4_USES_SOURCE(rop4);
|
UsesSource = ROP4_USES_SOURCE(rop4);
|
||||||
UsesPattern = ROP4_USES_PATTERN(rop4);
|
|
||||||
if (R4_NOOP == rop4)
|
if (R4_NOOP == rop4)
|
||||||
{
|
{
|
||||||
/* Copy destination onto itself: nop */
|
/* Copy destination onto itself: nop */
|
||||||
|
|
|
@ -36,11 +36,9 @@ static BOOL APIENTRY FillSolidUnlocked(SURFOBJ *pso, PRECTL pRect, ULONG iColor)
|
||||||
{
|
{
|
||||||
LONG y;
|
LONG y;
|
||||||
ULONG LineWidth;
|
ULONG LineWidth;
|
||||||
SURFACE *psurf;
|
|
||||||
|
|
||||||
ASSERT(pso);
|
ASSERT(pso);
|
||||||
ASSERT(pRect);
|
ASSERT(pRect);
|
||||||
psurf = CONTAINING_RECORD(pso, SURFACE, SurfObj);
|
|
||||||
MouseSafetyOnDrawStart(pso, pRect->left, pRect->top, pRect->right, pRect->bottom);
|
MouseSafetyOnDrawStart(pso, pRect->left, pRect->top, pRect->right, pRect->bottom);
|
||||||
LineWidth = pRect->right - pRect->left;
|
LineWidth = pRect->right - pRect->left;
|
||||||
DPRINT(" LineWidth: %d, top: %d, bottom: %d\n", LineWidth, pRect->top, pRect->bottom);
|
DPRINT(" LineWidth: %d, top: %d, bottom: %d\n", LineWidth, pRect->top, pRect->bottom);
|
||||||
|
|
|
@ -588,7 +588,7 @@ IntMakeCloneBaseClass(IN OUT PCLS Class,
|
||||||
IN OUT PCLS *BaseClassLink,
|
IN OUT PCLS *BaseClassLink,
|
||||||
IN OUT PCLS *CloneLink)
|
IN OUT PCLS *CloneLink)
|
||||||
{
|
{
|
||||||
PCLS Clone, BaseClass;
|
PCLS Clone;
|
||||||
|
|
||||||
ASSERT(Class->pclsBase != Class);
|
ASSERT(Class->pclsBase != Class);
|
||||||
ASSERT(Class->pclsBase->pclsClone != NULL);
|
ASSERT(Class->pclsBase->pclsClone != NULL);
|
||||||
|
@ -601,8 +601,6 @@ IntMakeCloneBaseClass(IN OUT PCLS Class,
|
||||||
*CloneLink = Class->pclsNext;
|
*CloneLink = Class->pclsNext;
|
||||||
Class->pclsClone = Class->pclsBase->pclsClone;
|
Class->pclsClone = Class->pclsBase->pclsClone;
|
||||||
|
|
||||||
BaseClass = Class->pclsBase;
|
|
||||||
|
|
||||||
/* update the class information to make it a base class */
|
/* update the class information to make it a base class */
|
||||||
Class->pclsBase = Class;
|
Class->pclsBase = Class;
|
||||||
Class->pclsNext = (*BaseClassLink)->pclsNext;
|
Class->pclsNext = (*BaseClassLink)->pclsNext;
|
||||||
|
@ -1818,8 +1816,6 @@ UserGetClassInfo(IN PCLS Class,
|
||||||
IN BOOL Ansi,
|
IN BOOL Ansi,
|
||||||
HINSTANCE hInstance)
|
HINSTANCE hInstance)
|
||||||
{
|
{
|
||||||
PPROCESSINFO pi;
|
|
||||||
|
|
||||||
if (!Class) return FALSE;
|
if (!Class) return FALSE;
|
||||||
|
|
||||||
lpwcx->style = Class->style;
|
lpwcx->style = Class->style;
|
||||||
|
@ -1828,8 +1824,6 @@ UserGetClassInfo(IN PCLS Class,
|
||||||
if (Class->fnid)
|
if (Class->fnid)
|
||||||
lpwcx->style &= ~CS_GLOBALCLASS;
|
lpwcx->style &= ~CS_GLOBALCLASS;
|
||||||
|
|
||||||
pi = GetW32ProcessInfo();
|
|
||||||
|
|
||||||
lpwcx->lpfnWndProc = IntGetClassWndProc(Class, Ansi);
|
lpwcx->lpfnWndProc = IntGetClassWndProc(Class, Ansi);
|
||||||
|
|
||||||
lpwcx->cbClsExtra = Class->cbclsExtra;
|
lpwcx->cbClsExtra = Class->cbclsExtra;
|
||||||
|
|
|
@ -949,7 +949,6 @@ NtUserSetClipboardData(UINT uFormat, HANDLE hMem, DWORD size)
|
||||||
// because pallette information may change
|
// because pallette information may change
|
||||||
|
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
INT ret;
|
|
||||||
BITMAP bm;
|
BITMAP bm;
|
||||||
BITMAPINFO bi;
|
BITMAPINFO bi;
|
||||||
SURFACE *psurf;
|
SURFACE *psurf;
|
||||||
|
@ -975,14 +974,14 @@ NtUserSetClipboardData(UINT uFormat, HANDLE hMem, DWORD size)
|
||||||
bi.bmiHeader.biYPelsPerMeter = 0;
|
bi.bmiHeader.biYPelsPerMeter = 0;
|
||||||
bi.bmiHeader.biClrUsed = 0;
|
bi.bmiHeader.biClrUsed = 0;
|
||||||
|
|
||||||
ret = NtGdiGetDIBitsInternal(hdc, hMem, 0, bm.bmHeight, NULL, &bi, DIB_RGB_COLORS, 0, 0);
|
NtGdiGetDIBitsInternal(hdc, hMem, 0, bm.bmHeight, NULL, &bi, DIB_RGB_COLORS, 0, 0);
|
||||||
|
|
||||||
size = bi.bmiHeader.biSizeImage + sizeof(BITMAPINFOHEADER);
|
size = bi.bmiHeader.biSizeImage + sizeof(BITMAPINFOHEADER);
|
||||||
|
|
||||||
hCBData = ExAllocatePoolWithTag(PagedPool, size, USERTAG_CLIPBOARD);
|
hCBData = ExAllocatePoolWithTag(PagedPool, size, USERTAG_CLIPBOARD);
|
||||||
memcpy(hCBData, &bi, sizeof(BITMAPINFOHEADER));
|
memcpy(hCBData, &bi, sizeof(BITMAPINFOHEADER));
|
||||||
|
|
||||||
ret = NtGdiGetDIBitsInternal(hdc, hMem, 0, bm.bmHeight, (LPBYTE)hCBData + sizeof(BITMAPINFOHEADER), &bi, DIB_RGB_COLORS, 0, 0);
|
NtGdiGetDIBitsInternal(hdc, hMem, 0, bm.bmHeight, (LPBYTE)hCBData + sizeof(BITMAPINFOHEADER), &bi, DIB_RGB_COLORS, 0, 0);
|
||||||
|
|
||||||
UserReleaseDC(NULL, hdc, FALSE);
|
UserReleaseDC(NULL, hdc, FALSE);
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,6 @@ UserSetCursor(
|
||||||
PCURICON_OBJECT OldCursor;
|
PCURICON_OBJECT OldCursor;
|
||||||
HCURSOR hOldCursor = (HCURSOR)0;
|
HCURSOR hOldCursor = (HCURSOR)0;
|
||||||
HDC hdcScreen;
|
HDC hdcScreen;
|
||||||
BOOL bResult;
|
|
||||||
|
|
||||||
CurInfo = IntGetSysCursorInfo();
|
CurInfo = IntGetSysCursorInfo();
|
||||||
|
|
||||||
|
@ -141,7 +140,7 @@ UserSetCursor(
|
||||||
CurInfo->CurrentCursorObject = NewCursor;
|
CurInfo->CurrentCursorObject = NewCursor;
|
||||||
|
|
||||||
/* Call GDI to set the new screen cursor */
|
/* Call GDI to set the new screen cursor */
|
||||||
bResult = GreSetPointerShape(hdcScreen,
|
GreSetPointerShape(hdcScreen,
|
||||||
NewCursor->IconInfo.hbmMask,
|
NewCursor->IconInfo.hbmMask,
|
||||||
NewCursor->IconInfo.hbmColor,
|
NewCursor->IconInfo.hbmColor,
|
||||||
NewCursor->IconInfo.xHotspot,
|
NewCursor->IconInfo.xHotspot,
|
||||||
|
|
|
@ -181,7 +181,6 @@ IntNotifyWinEvent(
|
||||||
{
|
{
|
||||||
PEVENTHOOK pEH;
|
PEVENTHOOK pEH;
|
||||||
PLIST_ENTRY pLE;
|
PLIST_ENTRY pLE;
|
||||||
LRESULT Result;
|
|
||||||
|
|
||||||
DPRINT("IntNotifyWinEvent GlobalEvents = 0x%x pWnd 0x%x\n",GlobalEvents, pWnd);
|
DPRINT("IntNotifyWinEvent GlobalEvents = 0x%x pWnd 0x%x\n",GlobalEvents, pWnd);
|
||||||
|
|
||||||
|
@ -204,7 +203,7 @@ IntNotifyWinEvent(
|
||||||
if (!(pEH->idProcess) || !(pEH->idThread) ||
|
if (!(pEH->idProcess) || !(pEH->idThread) ||
|
||||||
(NtCurrentTeb()->ClientId.UniqueProcess == (PVOID)(DWORD_PTR)pEH->idProcess))
|
(NtCurrentTeb()->ClientId.UniqueProcess == (PVOID)(DWORD_PTR)pEH->idProcess))
|
||||||
{
|
{
|
||||||
Result = IntCallLowLevelEvent( pEH,
|
IntCallLowLevelEvent( pEH,
|
||||||
Event,
|
Event,
|
||||||
UserHMGetHandle(pWnd),
|
UserHMGetHandle(pWnd),
|
||||||
idObject,
|
idObject,
|
||||||
|
@ -217,7 +216,8 @@ IntNotifyWinEvent(
|
||||||
!(pEH->Flags & WINEVENT_SKIPOWNPROCESS)) ||
|
!(pEH->Flags & WINEVENT_SKIPOWNPROCESS)) ||
|
||||||
!pEH->idProcess ) )
|
!pEH->idProcess ) )
|
||||||
{
|
{
|
||||||
Result = co_IntCallEventProc( UserHMGetHandle(pEH),
|
// What in the deuce is this right-aligned formatting?
|
||||||
|
co_IntCallEventProc( UserHMGetHandle(pEH),
|
||||||
Event,
|
Event,
|
||||||
UserHMGetHandle(pWnd),
|
UserHMGetHandle(pWnd),
|
||||||
idObject,
|
idObject,
|
||||||
|
|
|
@ -1236,7 +1236,6 @@ BOOL FASTCALL
|
||||||
IntKeyboardInput(KEYBDINPUT *ki)
|
IntKeyboardInput(KEYBDINPUT *ki)
|
||||||
{
|
{
|
||||||
PUSER_MESSAGE_QUEUE FocusMessageQueue;
|
PUSER_MESSAGE_QUEUE FocusMessageQueue;
|
||||||
PTHREADINFO pti;
|
|
||||||
MSG Msg;
|
MSG Msg;
|
||||||
LARGE_INTEGER LargeTickCount;
|
LARGE_INTEGER LargeTickCount;
|
||||||
KBDLLHOOKSTRUCT KbdHookData;
|
KBDLLHOOKSTRUCT KbdHookData;
|
||||||
|
@ -1339,7 +1338,6 @@ IntKeyboardInput(KEYBDINPUT *ki)
|
||||||
Msg.time = ki->time;
|
Msg.time = ki->time;
|
||||||
|
|
||||||
/* All messages have to contain the cursor point. */
|
/* All messages have to contain the cursor point. */
|
||||||
pti = PsGetCurrentThreadWin32Thread();
|
|
||||||
Msg.pt = gpsi->ptCursor;
|
Msg.pt = gpsi->ptCursor;
|
||||||
|
|
||||||
KbdHookData.vkCode = vk_hook;
|
KbdHookData.vkCode = vk_hook;
|
||||||
|
|
|
@ -430,7 +430,6 @@ IntTranslateKbdMessage(LPMSG lpMsg,
|
||||||
MSG NewMsg = { 0 };
|
MSG NewMsg = { 0 };
|
||||||
PKBDTABLES keyLayout;
|
PKBDTABLES keyLayout;
|
||||||
BOOL Result = FALSE;
|
BOOL Result = FALSE;
|
||||||
DWORD ScanCode = 0;
|
|
||||||
|
|
||||||
pti = PsGetCurrentThreadWin32Thread();
|
pti = PsGetCurrentThreadWin32Thread();
|
||||||
keyLayout = pti->KeyboardLayout->KBTables;
|
keyLayout = pti->KeyboardLayout->KBTables;
|
||||||
|
@ -456,8 +455,6 @@ IntTranslateKbdMessage(LPMSG lpMsg,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
ScanCode = (lpMsg->lParam >> 16) & 0xff;
|
|
||||||
|
|
||||||
UState = ToUnicodeInner(lpMsg->wParam, HIWORD(lpMsg->lParam) & 0xff,
|
UState = ToUnicodeInner(lpMsg->wParam, HIWORD(lpMsg->lParam) & 0xff,
|
||||||
gQueueKeyStateTable, wp, 2, 0,
|
gQueueKeyStateTable, wp, 2, 0,
|
||||||
keyLayout );
|
keyLayout );
|
||||||
|
|
|
@ -959,7 +959,6 @@ DWORD FASTCALL
|
||||||
IntBuildMenuItemList(PMENU_OBJECT MenuObject, PVOID Buffer, ULONG nMax)
|
IntBuildMenuItemList(PMENU_OBJECT MenuObject, PVOID Buffer, ULONG nMax)
|
||||||
{
|
{
|
||||||
DWORD res = 0;
|
DWORD res = 0;
|
||||||
UINT sz;
|
|
||||||
ROSMENUITEMINFO mii;
|
ROSMENUITEMINFO mii;
|
||||||
PVOID Buf;
|
PVOID Buf;
|
||||||
PMENU_ITEM CurItem = MenuObject->MenuItemList;
|
PMENU_ITEM CurItem = MenuObject->MenuItemList;
|
||||||
|
@ -976,7 +975,6 @@ IntBuildMenuItemList(PMENU_OBJECT MenuObject, PVOID Buffer, ULONG nMax)
|
||||||
StrOut = (PWCHAR)((char *) Buffer + MenuObject->MenuInfo.MenuItemCount
|
StrOut = (PWCHAR)((char *) Buffer + MenuObject->MenuInfo.MenuItemCount
|
||||||
* sizeof(ROSMENUITEMINFO));
|
* sizeof(ROSMENUITEMINFO));
|
||||||
nMax -= MenuObject->MenuInfo.MenuItemCount * sizeof(ROSMENUITEMINFO);
|
nMax -= MenuObject->MenuInfo.MenuItemCount * sizeof(ROSMENUITEMINFO);
|
||||||
sz = sizeof(ROSMENUITEMINFO);
|
|
||||||
Buf = Buffer;
|
Buf = Buffer;
|
||||||
mii.cbSize = sizeof(ROSMENUITEMINFO);
|
mii.cbSize = sizeof(ROSMENUITEMINFO);
|
||||||
mii.fMask = 0;
|
mii.fMask = 0;
|
||||||
|
|
|
@ -1868,7 +1868,6 @@ UserSendNotifyMessage( HWND hWnd,
|
||||||
ULONG_PTR PResult;
|
ULONG_PTR PResult;
|
||||||
PTHREADINFO pti;
|
PTHREADINFO pti;
|
||||||
PWINDOW_OBJECT Window;
|
PWINDOW_OBJECT Window;
|
||||||
MSG Message;
|
|
||||||
|
|
||||||
if ( !(Window = UserGetWindowObject(hWnd)) ) return FALSE;
|
if ( !(Window = UserGetWindowObject(hWnd)) ) return FALSE;
|
||||||
|
|
||||||
|
@ -1880,11 +1879,6 @@ UserSendNotifyMessage( HWND hWnd,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ // Handle message and callback.
|
{ // Handle message and callback.
|
||||||
Message.hwnd = hWnd;
|
|
||||||
Message.message = Msg;
|
|
||||||
Message.wParam = wParam;
|
|
||||||
Message.lParam = lParam;
|
|
||||||
|
|
||||||
Result = co_IntSendMessageTimeoutSingle( hWnd,
|
Result = co_IntSendMessageTimeoutSingle( hWnd,
|
||||||
Msg,
|
Msg,
|
||||||
wParam,
|
wParam,
|
||||||
|
|
|
@ -97,8 +97,6 @@ UserInitialize(
|
||||||
HANDLE hPowerRequestEvent,
|
HANDLE hPowerRequestEvent,
|
||||||
HANDLE hMediaRequestEvent)
|
HANDLE hMediaRequestEvent)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
|
||||||
|
|
||||||
// Set W32PF_Flags |= (W32PF_READSCREENACCESSGRANTED | W32PF_IOWINSTA)
|
// Set W32PF_Flags |= (W32PF_READSCREENACCESSGRANTED | W32PF_IOWINSTA)
|
||||||
// Create Object Directory,,, Looks like create workstation. "\\Windows\\WindowStations"
|
// Create Object Directory,,, Looks like create workstation. "\\Windows\\WindowStations"
|
||||||
// Create Event for Diconnect Desktop.
|
// Create Event for Diconnect Desktop.
|
||||||
|
@ -116,7 +114,7 @@ UserInitialize(
|
||||||
|
|
||||||
// Callback to User32 Client Thread Setup
|
// Callback to User32 Client Thread Setup
|
||||||
|
|
||||||
Status = co_IntClientThreadSetup();
|
co_IntClientThreadSetup();
|
||||||
|
|
||||||
// }
|
// }
|
||||||
// Set Global SERVERINFO Error flags.
|
// Set Global SERVERINFO Error flags.
|
||||||
|
|
|
@ -103,7 +103,6 @@ IntCalcWindowRgn(PWINDOW_OBJECT Window, BOOL Client)
|
||||||
{
|
{
|
||||||
PWND Wnd;
|
PWND Wnd;
|
||||||
HRGN hRgnWindow;
|
HRGN hRgnWindow;
|
||||||
UINT RgnType;
|
|
||||||
|
|
||||||
Wnd = Window->Wnd;
|
Wnd = Window->Wnd;
|
||||||
if (Client)
|
if (Client)
|
||||||
|
@ -116,7 +115,7 @@ IntCalcWindowRgn(PWINDOW_OBJECT Window, BOOL Client)
|
||||||
NtGdiOffsetRgn(hRgnWindow,
|
NtGdiOffsetRgn(hRgnWindow,
|
||||||
-Wnd->rcWindow.left,
|
-Wnd->rcWindow.left,
|
||||||
-Wnd->rcWindow.top);
|
-Wnd->rcWindow.top);
|
||||||
RgnType = NtGdiCombineRgn(hRgnWindow, hRgnWindow, Window->hrgnClip, RGN_AND);
|
NtGdiCombineRgn(hRgnWindow, hRgnWindow, Window->hrgnClip, RGN_AND);
|
||||||
NtGdiOffsetRgn(hRgnWindow,
|
NtGdiOffsetRgn(hRgnWindow,
|
||||||
Wnd->rcWindow.left,
|
Wnd->rcWindow.left,
|
||||||
Wnd->rcWindow.top);
|
Wnd->rcWindow.top);
|
||||||
|
@ -728,15 +727,13 @@ co_IntFixCaret(PWINDOW_OBJECT Window, RECTL *lprc, UINT flags)
|
||||||
if (WndCaret == Window ||
|
if (WndCaret == Window ||
|
||||||
((flags & SW_SCROLLCHILDREN) && IntIsChildWindow(Window, WndCaret)))
|
((flags & SW_SCROLLCHILDREN) && IntIsChildWindow(Window, WndCaret)))
|
||||||
{
|
{
|
||||||
POINT pt, FromOffset, ToOffset, Offset;
|
POINT pt, FromOffset, ToOffset;
|
||||||
RECTL rcCaret;
|
RECTL rcCaret;
|
||||||
|
|
||||||
pt.x = CaretInfo->Pos.x;
|
pt.x = CaretInfo->Pos.x;
|
||||||
pt.y = CaretInfo->Pos.y;
|
pt.y = CaretInfo->Pos.y;
|
||||||
IntGetClientOrigin(WndCaret, &FromOffset);
|
IntGetClientOrigin(WndCaret, &FromOffset);
|
||||||
IntGetClientOrigin(Window, &ToOffset);
|
IntGetClientOrigin(Window, &ToOffset);
|
||||||
Offset.x = FromOffset.x - ToOffset.x;
|
|
||||||
Offset.y = FromOffset.y - ToOffset.y;
|
|
||||||
rcCaret.left = pt.x;
|
rcCaret.left = pt.x;
|
||||||
rcCaret.top = pt.y;
|
rcCaret.top = pt.y;
|
||||||
rcCaret.right = pt.x + CaretInfo->Size.cx;
|
rcCaret.right = pt.x + CaretInfo->Size.cx;
|
||||||
|
|
|
@ -57,14 +57,12 @@ BOOL FASTCALL
|
||||||
IntRemoveProp(PWINDOW_OBJECT Window, ATOM Atom)
|
IntRemoveProp(PWINDOW_OBJECT Window, ATOM Atom)
|
||||||
{
|
{
|
||||||
PPROPERTY Prop;
|
PPROPERTY Prop;
|
||||||
HANDLE Data;
|
|
||||||
Prop = IntGetProp(Window, Atom);
|
Prop = IntGetProp(Window, Atom);
|
||||||
|
|
||||||
if (Prop == NULL)
|
if (Prop == NULL)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
Data = Prop->Data;
|
|
||||||
RemoveEntryList(&Prop->PropListEntry);
|
RemoveEntryList(&Prop->PropListEntry);
|
||||||
UserHeapFree(Prop);
|
UserHeapFree(Prop);
|
||||||
Window->Wnd->PropListItems--;
|
Window->Wnd->PropListItems--;
|
||||||
|
|
|
@ -470,7 +470,6 @@ co_IntCreateScrollBars(PWINDOW_OBJECT Window)
|
||||||
{
|
{
|
||||||
PSCROLLBARINFO psbi;
|
PSCROLLBARINFO psbi;
|
||||||
LPSCROLLINFO psi;
|
LPSCROLLINFO psi;
|
||||||
LRESULT Result;
|
|
||||||
ULONG Size, s;
|
ULONG Size, s;
|
||||||
INT i;
|
INT i;
|
||||||
|
|
||||||
|
@ -492,7 +491,7 @@ co_IntCreateScrollBars(PWINDOW_OBJECT Window)
|
||||||
|
|
||||||
RtlZeroMemory(Window->pSBInfo, Size);
|
RtlZeroMemory(Window->pSBInfo, Size);
|
||||||
|
|
||||||
Result = co_WinPosGetNonClientSize(Window,
|
co_WinPosGetNonClientSize(Window,
|
||||||
&Window->Wnd->rcWindow,
|
&Window->Wnd->rcWindow,
|
||||||
&Window->Wnd->rcClient);
|
&Window->Wnd->rcClient);
|
||||||
|
|
||||||
|
|
|
@ -698,7 +698,6 @@ NtUserCallHwndParamLock(
|
||||||
{
|
{
|
||||||
DWORD Ret = 0;
|
DWORD Ret = 0;
|
||||||
PWINDOW_OBJECT Window;
|
PWINDOW_OBJECT Window;
|
||||||
PWND Wnd;
|
|
||||||
USER_REFERENCE_ENTRY Ref;
|
USER_REFERENCE_ENTRY Ref;
|
||||||
DECLARE_RETURN(DWORD);
|
DECLARE_RETURN(DWORD);
|
||||||
|
|
||||||
|
@ -711,8 +710,6 @@ NtUserCallHwndParamLock(
|
||||||
}
|
}
|
||||||
UserRefObjectCo(Window, &Ref);
|
UserRefObjectCo(Window, &Ref);
|
||||||
|
|
||||||
Wnd = Window->Wnd;
|
|
||||||
|
|
||||||
switch (Routine)
|
switch (Routine)
|
||||||
{
|
{
|
||||||
case TWOPARAM_ROUTINE_VALIDATERGN:
|
case TWOPARAM_ROUTINE_VALIDATERGN:
|
||||||
|
|
|
@ -1562,12 +1562,11 @@ IntFixWindowCoordinates(CREATESTRUCTW* Cs, PWINDOW_OBJECT ParentWindow, DWORD* d
|
||||||
/* default positioning for overlapped windows */
|
/* default positioning for overlapped windows */
|
||||||
if(!(Cs->style & (WS_POPUP | WS_CHILD)))
|
if(!(Cs->style & (WS_POPUP | WS_CHILD)))
|
||||||
{
|
{
|
||||||
RECTL rc, WorkArea;
|
RECTL WorkArea;
|
||||||
PRTL_USER_PROCESS_PARAMETERS ProcessParams;
|
PRTL_USER_PROCESS_PARAMETERS ProcessParams;
|
||||||
|
|
||||||
UserSystemParametersInfo(SPI_GETWORKAREA, 0, &WorkArea, 0);
|
UserSystemParametersInfo(SPI_GETWORKAREA, 0, &WorkArea, 0);
|
||||||
|
|
||||||
rc = WorkArea;
|
|
||||||
ProcessParams = PsGetCurrentProcess()->Peb->ProcessParameters;
|
ProcessParams = PsGetCurrentProcess()->Peb->ProcessParameters;
|
||||||
|
|
||||||
if (IS_DEFAULT(Cs->x))
|
if (IS_DEFAULT(Cs->x))
|
||||||
|
@ -2971,9 +2970,8 @@ PWINDOW_OBJECT FASTCALL UserGetAncestor(PWINDOW_OBJECT Wnd, UINT Type)
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
PWINDOW_OBJECT Parent, Old;
|
PWINDOW_OBJECT Parent;
|
||||||
|
|
||||||
Old = WndAncestor;
|
|
||||||
Parent = IntGetParent(WndAncestor);
|
Parent = IntGetParent(WndAncestor);
|
||||||
|
|
||||||
if (!Parent)
|
if (!Parent)
|
||||||
|
@ -3075,7 +3073,6 @@ NtUserGetInternalWindowPos( HWND hWnd,
|
||||||
LPPOINT ptIcon)
|
LPPOINT ptIcon)
|
||||||
{
|
{
|
||||||
PWINDOW_OBJECT Window;
|
PWINDOW_OBJECT Window;
|
||||||
PWND Wnd;
|
|
||||||
DWORD Ret = 0;
|
DWORD Ret = 0;
|
||||||
BOOL Hit = FALSE;
|
BOOL Hit = FALSE;
|
||||||
WINDOWPLACEMENT wndpl;
|
WINDOWPLACEMENT wndpl;
|
||||||
|
@ -3087,7 +3084,6 @@ NtUserGetInternalWindowPos( HWND hWnd,
|
||||||
Hit = FALSE;
|
Hit = FALSE;
|
||||||
goto Exit;
|
goto Exit;
|
||||||
}
|
}
|
||||||
Wnd = Window->Wnd;
|
|
||||||
|
|
||||||
_SEH2_TRY
|
_SEH2_TRY
|
||||||
{
|
{
|
||||||
|
@ -4435,7 +4431,6 @@ NtUserWindowFromPoint(LONG X, LONG Y)
|
||||||
if ((DesktopWindow = UserGetWindowObject(IntGetDesktopWindow())))
|
if ((DesktopWindow = UserGetWindowObject(IntGetDesktopWindow())))
|
||||||
{
|
{
|
||||||
PTHREADINFO pti;
|
PTHREADINFO pti;
|
||||||
USHORT Hit;
|
|
||||||
|
|
||||||
pt.x = X;
|
pt.x = X;
|
||||||
pt.y = Y;
|
pt.y = Y;
|
||||||
|
@ -4445,7 +4440,7 @@ NtUserWindowFromPoint(LONG X, LONG Y)
|
||||||
UserRefObjectCo(DesktopWindow, &Ref);
|
UserRefObjectCo(DesktopWindow, &Ref);
|
||||||
|
|
||||||
pti = PsGetCurrentThreadWin32Thread();
|
pti = PsGetCurrentThreadWin32Thread();
|
||||||
Hit = co_WinPosWindowFromPoint(DesktopWindow, pti->MessageQueue, &pt, &Window);
|
co_WinPosWindowFromPoint(DesktopWindow, pti->MessageQueue, &pt, &Window);
|
||||||
|
|
||||||
if(Window)
|
if(Window)
|
||||||
{
|
{
|
||||||
|
|
|
@ -995,7 +995,6 @@ IntGetWinStaObj(VOID)
|
||||||
BOOL APIENTRY
|
BOOL APIENTRY
|
||||||
NtUserSetProcessWindowStation(HWINSTA hWindowStation)
|
NtUserSetProcessWindowStation(HWINSTA hWindowStation)
|
||||||
{
|
{
|
||||||
HANDLE hOld;
|
|
||||||
PWINSTATION_OBJECT NewWinSta;
|
PWINSTATION_OBJECT NewWinSta;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
|
@ -1028,7 +1027,7 @@ NtUserSetProcessWindowStation(HWINSTA hWindowStation)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* FIXME - dereference the old window station, etc... */
|
/* FIXME - dereference the old window station, etc... */
|
||||||
hOld = InterlockedExchangePointer(&PsGetCurrentProcess()->Win32WindowStation, hWindowStation);
|
InterlockedExchangePointer(&PsGetCurrentProcess()->Win32WindowStation, hWindowStation);
|
||||||
|
|
||||||
DPRINT("PsGetCurrentProcess()->Win32WindowStation 0x%X\n",
|
DPRINT("PsGetCurrentProcess()->Win32WindowStation 0x%X\n",
|
||||||
PsGetCurrentProcess()->Win32WindowStation);
|
PsGetCurrentProcess()->Win32WindowStation);
|
||||||
|
|
|
@ -322,7 +322,6 @@ NtGdiTransparentBlt(
|
||||||
SURFACE *BitmapDest, *BitmapSrc = NULL;
|
SURFACE *BitmapDest, *BitmapSrc = NULL;
|
||||||
HPALETTE SourcePalette = 0, DestPalette = 0;
|
HPALETTE SourcePalette = 0, DestPalette = 0;
|
||||||
PPALETTE PalDestGDI, PalSourceGDI;
|
PPALETTE PalDestGDI, PalSourceGDI;
|
||||||
USHORT PalDestMode, PalSrcMode;
|
|
||||||
ULONG TransparentColor = 0;
|
ULONG TransparentColor = 0;
|
||||||
BOOL Ret = FALSE;
|
BOOL Ret = FALSE;
|
||||||
EXLATEOBJ exlo;
|
EXLATEOBJ exlo;
|
||||||
|
@ -387,7 +386,6 @@ NtGdiTransparentBlt(
|
||||||
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
PalSrcMode = PalSourceGDI->Mode;
|
|
||||||
PALETTE_UnlockPalette(PalSourceGDI);
|
PALETTE_UnlockPalette(PalSourceGDI);
|
||||||
|
|
||||||
if(DestPalette != SourcePalette)
|
if(DestPalette != SourcePalette)
|
||||||
|
@ -397,12 +395,10 @@ NtGdiTransparentBlt(
|
||||||
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
PalDestMode = PalDestGDI->Mode;
|
|
||||||
PALETTE_UnlockPalette(PalDestGDI);
|
PALETTE_UnlockPalette(PalDestGDI);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PalDestMode = PalSrcMode;
|
|
||||||
PalDestGDI = PalSourceGDI;
|
PalDestGDI = PalSourceGDI;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -212,7 +212,6 @@ static
|
||||||
VOID
|
VOID
|
||||||
CopytoUserDcAttr(PDC dc, PDC_ATTR pdcattr)
|
CopytoUserDcAttr(PDC dc, PDC_ATTR pdcattr)
|
||||||
{
|
{
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
|
||||||
dc->dcattr.mxWorldToDevice = dc->dclevel.mxWorldToDevice;
|
dc->dcattr.mxWorldToDevice = dc->dclevel.mxWorldToDevice;
|
||||||
dc->dcattr.mxDeviceToWorld = dc->dclevel.mxDeviceToWorld;
|
dc->dcattr.mxDeviceToWorld = dc->dclevel.mxDeviceToWorld;
|
||||||
dc->dcattr.mxWorldToPage = dc->dclevel.mxWorldToPage;
|
dc->dcattr.mxWorldToPage = dc->dclevel.mxWorldToPage;
|
||||||
|
@ -228,7 +227,6 @@ CopytoUserDcAttr(PDC dc, PDC_ATTR pdcattr)
|
||||||
}
|
}
|
||||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||||
{
|
{
|
||||||
Status = _SEH2_GetExceptionCode();
|
|
||||||
ASSERT(FALSE);
|
ASSERT(FALSE);
|
||||||
}
|
}
|
||||||
_SEH2_END;
|
_SEH2_END;
|
||||||
|
|
|
@ -1256,10 +1256,8 @@ IntChangeDisplaySettings(
|
||||||
IN DWORD dwflags,
|
IN DWORD dwflags,
|
||||||
IN PVOID lParam OPTIONAL)
|
IN PVOID lParam OPTIONAL)
|
||||||
{
|
{
|
||||||
BOOLEAN Global = FALSE;
|
|
||||||
BOOLEAN NoReset = FALSE;
|
BOOLEAN NoReset = FALSE;
|
||||||
BOOLEAN Reset = FALSE;
|
BOOLEAN Reset = FALSE;
|
||||||
BOOLEAN SetPrimary = FALSE;
|
|
||||||
LONG Ret = DISP_CHANGE_SUCCESSFUL;
|
LONG Ret = DISP_CHANGE_SUCCESSFUL;
|
||||||
NTSTATUS Status ;
|
NTSTATUS Status ;
|
||||||
|
|
||||||
|
@ -1269,7 +1267,7 @@ IntChangeDisplaySettings(
|
||||||
{
|
{
|
||||||
/* Check global, reset and noreset flags */
|
/* Check global, reset and noreset flags */
|
||||||
if ((dwflags & CDS_GLOBAL) == CDS_GLOBAL)
|
if ((dwflags & CDS_GLOBAL) == CDS_GLOBAL)
|
||||||
Global = TRUE;
|
DPRINT1("CDS_GLOBAL unhandled");
|
||||||
if ((dwflags & CDS_NORESET) == CDS_NORESET)
|
if ((dwflags & CDS_NORESET) == CDS_NORESET)
|
||||||
NoReset = TRUE;
|
NoReset = TRUE;
|
||||||
dwflags &= ~(CDS_GLOBAL | CDS_NORESET);
|
dwflags &= ~(CDS_GLOBAL | CDS_NORESET);
|
||||||
|
@ -1277,7 +1275,7 @@ IntChangeDisplaySettings(
|
||||||
if ((dwflags & CDS_RESET) == CDS_RESET)
|
if ((dwflags & CDS_RESET) == CDS_RESET)
|
||||||
Reset = TRUE;
|
Reset = TRUE;
|
||||||
if ((dwflags & CDS_SET_PRIMARY) == CDS_SET_PRIMARY)
|
if ((dwflags & CDS_SET_PRIMARY) == CDS_SET_PRIMARY)
|
||||||
SetPrimary = TRUE;
|
DPRINT1("CDS_SET_PRIMARY unhandled");
|
||||||
dwflags &= ~(CDS_RESET | CDS_SET_PRIMARY);
|
dwflags &= ~(CDS_RESET | CDS_SET_PRIMARY);
|
||||||
|
|
||||||
if (Reset && NoReset)
|
if (Reset && NoReset)
|
||||||
|
|
|
@ -302,7 +302,9 @@ IntGdiAddFontResource(PUNICODE_STRING FileName, DWORD Characteristics)
|
||||||
PSECTION_OBJECT SectionObject;
|
PSECTION_OBJECT SectionObject;
|
||||||
ULONG ViewSize = 0;
|
ULONG ViewSize = 0;
|
||||||
LARGE_INTEGER SectionSize;
|
LARGE_INTEGER SectionSize;
|
||||||
|
#if 0 // Wine code
|
||||||
FT_Fixed XScale, YScale;
|
FT_Fixed XScale, YScale;
|
||||||
|
#endif
|
||||||
UNICODE_STRING FontRegPath = RTL_CONSTANT_STRING(L"\\REGISTRY\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Fonts");
|
UNICODE_STRING FontRegPath = RTL_CONSTANT_STRING(L"\\REGISTRY\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Fonts");
|
||||||
|
|
||||||
/* Open the font file */
|
/* Open the font file */
|
||||||
|
@ -395,9 +397,9 @@ IntGdiAddFontResource(PUNICODE_STRING FileName, DWORD Characteristics)
|
||||||
FontGDI->face = Face;
|
FontGDI->face = Face;
|
||||||
|
|
||||||
/* FIXME: Complete text metrics */
|
/* FIXME: Complete text metrics */
|
||||||
|
#if 0 /* This (Wine) code doesn't seem to work correctly for us */
|
||||||
XScale = Face->size->metrics.x_scale;
|
XScale = Face->size->metrics.x_scale;
|
||||||
YScale = Face->size->metrics.y_scale;
|
YScale = Face->size->metrics.y_scale;
|
||||||
#if 0 /* This (Wine) code doesn't seem to work correctly for us */
|
|
||||||
FontGDI->TextMetric.tmAscent = (FT_MulFix(Face->ascender, YScale) + 32) >> 6;
|
FontGDI->TextMetric.tmAscent = (FT_MulFix(Face->ascender, YScale) + 32) >> 6;
|
||||||
FontGDI->TextMetric.tmDescent = (FT_MulFix(Face->descender, YScale) + 32) >> 6;
|
FontGDI->TextMetric.tmDescent = (FT_MulFix(Face->descender, YScale) + 32) >> 6;
|
||||||
FontGDI->TextMetric.tmHeight = (FT_MulFix(Face->ascender, YScale) -
|
FontGDI->TextMetric.tmHeight = (FT_MulFix(Face->ascender, YScale) -
|
||||||
|
|
|
@ -117,8 +117,7 @@ GdiFlushUserBatch(PDC dc, PGDIBATCHHDR pHdr)
|
||||||
case GdiBCSelObj:
|
case GdiBCSelObj:
|
||||||
{
|
{
|
||||||
PGDIBSOBJECT pgO;
|
PGDIBSOBJECT pgO;
|
||||||
PTEXTOBJ pOrgFnt, pNewFnt = NULL;
|
PTEXTOBJ pNewFnt = NULL;
|
||||||
HFONT hOrgFont = NULL;
|
|
||||||
|
|
||||||
if (!dc) break;
|
if (!dc) break;
|
||||||
pgO = (PGDIBSOBJECT) pHdr;
|
pgO = (PGDIBSOBJECT) pHdr;
|
||||||
|
@ -128,15 +127,6 @@ GdiFlushUserBatch(PDC dc, PGDIBATCHHDR pHdr)
|
||||||
/* LFONTOBJ use share and locking. */
|
/* LFONTOBJ use share and locking. */
|
||||||
pNewFnt = TEXTOBJ_LockText(pgO->hgdiobj);
|
pNewFnt = TEXTOBJ_LockText(pgO->hgdiobj);
|
||||||
|
|
||||||
pOrgFnt = dc->dclevel.plfnt;
|
|
||||||
if (pOrgFnt)
|
|
||||||
{
|
|
||||||
hOrgFont = pOrgFnt->BaseObject.hHmgr;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
hOrgFont = pdcattr->hlfntNew;
|
|
||||||
}
|
|
||||||
dc->dclevel.plfnt = pNewFnt;
|
dc->dclevel.plfnt = pNewFnt;
|
||||||
dc->hlfntCur = pgO->hgdiobj;
|
dc->hlfntCur = pgO->hgdiobj;
|
||||||
pdcattr->hlfntNew = pgO->hgdiobj;
|
pdcattr->hlfntNew = pgO->hgdiobj;
|
||||||
|
|
|
@ -693,7 +693,6 @@ IntGdiRealizePalette(HDC hDC)
|
||||||
int realized = 0;
|
int realized = 0;
|
||||||
PDC dc;
|
PDC dc;
|
||||||
HPALETTE systemPalette;
|
HPALETTE systemPalette;
|
||||||
USHORT sysMode, palMode;
|
|
||||||
|
|
||||||
dc = DC_LockDc(hDC);
|
dc = DC_LockDc(hDC);
|
||||||
if (!dc) return 0;
|
if (!dc) return 0;
|
||||||
|
@ -731,8 +730,6 @@ IntGdiRealizePalette(HDC hDC)
|
||||||
}
|
}
|
||||||
|
|
||||||
// need to pass this to IntEngCreateXlate with palettes unlocked
|
// need to pass this to IntEngCreateXlate with palettes unlocked
|
||||||
sysMode = sysGDI->Mode;
|
|
||||||
palMode = palGDI->Mode;
|
|
||||||
PALETTE_UnlockPalette(sysGDI);
|
PALETTE_UnlockPalette(sysGDI);
|
||||||
PALETTE_UnlockPalette(palGDI);
|
PALETTE_UnlockPalette(palGDI);
|
||||||
|
|
||||||
|
|
|
@ -98,9 +98,9 @@ BOOL
|
||||||
FASTCALL
|
FASTCALL
|
||||||
PATH_FillPath( PDC dc, PPATH pPath )
|
PATH_FillPath( PDC dc, PPATH pPath )
|
||||||
{
|
{
|
||||||
INT mapMode, graphicsMode;
|
//INT mapMode, graphicsMode;
|
||||||
SIZE ptViewportExt, ptWindowExt;
|
//SIZE ptViewportExt, ptWindowExt;
|
||||||
POINTL ptViewportOrg, ptWindowOrg;
|
//POINTL ptViewportOrg, ptWindowOrg;
|
||||||
XFORM xform;
|
XFORM xform;
|
||||||
HRGN hrgn;
|
HRGN hrgn;
|
||||||
PDC_ATTR pdcattr = dc->pdcattr;
|
PDC_ATTR pdcattr = dc->pdcattr;
|
||||||
|
@ -122,11 +122,11 @@ PATH_FillPath( PDC dc, PPATH pPath )
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Save the information about the old mapping mode */
|
/* Save the information about the old mapping mode */
|
||||||
mapMode = pdcattr->iMapMode;
|
//mapMode = pdcattr->iMapMode;
|
||||||
ptViewportExt = pdcattr->szlViewportExt;
|
//ptViewportExt = pdcattr->szlViewportExt;
|
||||||
ptViewportOrg = pdcattr->ptlViewportOrg;
|
//ptViewportOrg = pdcattr->ptlViewportOrg;
|
||||||
ptWindowExt = pdcattr->szlWindowExt;
|
//ptWindowExt = pdcattr->szlWindowExt;
|
||||||
ptWindowOrg = pdcattr->ptlWindowOrg;
|
//ptWindowOrg = pdcattr->ptlWindowOrg;
|
||||||
|
|
||||||
/* Save world transform
|
/* Save world transform
|
||||||
* NB: The Windows documentation on world transforms would lead one to
|
* NB: The Windows documentation on world transforms would lead one to
|
||||||
|
@ -143,7 +143,7 @@ PATH_FillPath( PDC dc, PPATH pPath )
|
||||||
// pdcattr->ptlWindowOrg.x = 0;
|
// pdcattr->ptlWindowOrg.x = 0;
|
||||||
// pdcattr->ptlWindowOrg.y = 0;
|
// pdcattr->ptlWindowOrg.y = 0;
|
||||||
|
|
||||||
graphicsMode = pdcattr->iGraphicsMode;
|
// graphicsMode = pdcattr->iGraphicsMode;
|
||||||
// pdcattr->iGraphicsMode = GM_ADVANCED;
|
// pdcattr->iGraphicsMode = GM_ADVANCED;
|
||||||
// IntGdiModifyWorldTransform( dc, &xform, MWT_IDENTITY );
|
// IntGdiModifyWorldTransform( dc, &xform, MWT_IDENTITY );
|
||||||
// pdcattr->iGraphicsMode = graphicsMode;
|
// pdcattr->iGraphicsMode = graphicsMode;
|
||||||
|
@ -159,7 +159,7 @@ PATH_FillPath( PDC dc, PPATH pPath )
|
||||||
// pdcattr->ptlWindowOrg = ptWindowOrg;
|
// pdcattr->ptlWindowOrg = ptWindowOrg;
|
||||||
|
|
||||||
/* Go to GM_ADVANCED temporarily to restore the world transform */
|
/* Go to GM_ADVANCED temporarily to restore the world transform */
|
||||||
graphicsMode = pdcattr->iGraphicsMode;
|
//graphicsMode = pdcattr->iGraphicsMode;
|
||||||
// pdcattr->iGraphicsMode = GM_ADVANCED;
|
// pdcattr->iGraphicsMode = GM_ADVANCED;
|
||||||
// IntGdiModifyWorldTransform( dc, &xform, MWT_MAX+1 );
|
// IntGdiModifyWorldTransform( dc, &xform, MWT_MAX+1 );
|
||||||
// pdcattr->iGraphicsMode = graphicsMode;
|
// pdcattr->iGraphicsMode = graphicsMode;
|
||||||
|
|
|
@ -2451,7 +2451,7 @@ IntGdiPaintRgn(
|
||||||
REGION_FreeRgnByHandle(tmpVisRgn);
|
REGION_FreeRgnByHandle(tmpVisRgn);
|
||||||
|
|
||||||
// Fill the region
|
// Fill the region
|
||||||
return TRUE;
|
return bRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
|
|
|
@ -836,9 +836,8 @@ CreatePrimitive(FILE *Out, unsigned Bpp, PROPINFO RopInfo)
|
||||||
}
|
}
|
||||||
if (ROPCODE_GENERIC == RopInfo->RopCode)
|
if (ROPCODE_GENERIC == RopInfo->RopCode)
|
||||||
{
|
{
|
||||||
Output(Out, "BOOLEAN UsesDest, UsesSource, UsesPattern;\n");
|
Output(Out, "BOOLEAN UsesSource, UsesPattern;\n");
|
||||||
Output(Out, "\n");
|
Output(Out, "\n");
|
||||||
Output(Out, "UsesDest = ROP4_USES_DEST(BltInfo->Rop4);\n");
|
|
||||||
Output(Out, "UsesSource = ROP4_USES_SOURCE(BltInfo->Rop4);\n");
|
Output(Out, "UsesSource = ROP4_USES_SOURCE(BltInfo->Rop4);\n");
|
||||||
Output(Out, "UsesPattern = ROP4_USES_PATTERN(BltInfo->Rop4);\n");
|
Output(Out, "UsesPattern = ROP4_USES_PATTERN(BltInfo->Rop4);\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue