mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 04:14:53 +00:00
2003-08-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
* include/win32k/ntuser.h (NtUserGetClassName): Make nMaxCount an ULONG. * subsys/win32k/dib/dib16bpp.c: Fix unsigned/signed warnings. * subsys/win32k/dib/dib1bpp.c: Ditto. * subsys/win32k/dib/dib32bpp.c: Ditto. * subsys/win32k/dib/dib4bpp.c: Ditto. * subsys/win32k/dib/dib8bpp.c: Ditto. * subsys/win32k/eng/lineto.c: Ditto. * subsys/win32k/eng/mouse.c: Ditto. * subsys/win32k/eng/xlate.c: Ditto. * subsys/win32k/misc/driver.c: Ditto. * subsys/win32k/ntuser/class.c: Ditto. * subsys/win32k/ntuser/keyboard.c: Ditto. * subsys/win32k/ntuser/timer.c: Ditto. * subsys/win32k/ntuser/window.c: Ditto. * subsys/win32k/objects/bitmaps.c: Ditto. * subsys/win32k/objects/color.c: Ditto. * subsys/win32k/objects/coord.c: Ditto. * subsys/win32k/objects/dib.c: Ditto. * subsys/win32k/objects/path.c: Ditto. * subsys/win32k/objects/region.c: Ditto. * subsys/win32k/objects/text.c: Ditto. svn path=/trunk/; revision=5562
This commit is contained in:
parent
6b9dcfa9e2
commit
be065e6f54
23 changed files with 107 additions and 82 deletions
|
@ -1,13 +1,37 @@
|
||||||
|
2003-08-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
|
||||||
|
|
||||||
|
* include/win32k/ntuser.h (NtUserGetClassName): Make nMaxCount an ULONG.
|
||||||
|
* subsys/win32k/dib/dib16bpp.c: Fix unsigned/signed warnings.
|
||||||
|
* subsys/win32k/dib/dib1bpp.c: Ditto.
|
||||||
|
* subsys/win32k/dib/dib32bpp.c: Ditto.
|
||||||
|
* subsys/win32k/dib/dib4bpp.c: Ditto.
|
||||||
|
* subsys/win32k/dib/dib8bpp.c: Ditto.
|
||||||
|
* subsys/win32k/eng/lineto.c: Ditto.
|
||||||
|
* subsys/win32k/eng/mouse.c: Ditto.
|
||||||
|
* subsys/win32k/eng/xlate.c: Ditto.
|
||||||
|
* subsys/win32k/misc/driver.c: Ditto.
|
||||||
|
* subsys/win32k/ntuser/class.c: Ditto.
|
||||||
|
* subsys/win32k/ntuser/keyboard.c: Ditto.
|
||||||
|
* subsys/win32k/ntuser/timer.c: Ditto.
|
||||||
|
* subsys/win32k/ntuser/window.c: Ditto.
|
||||||
|
* subsys/win32k/objects/bitmaps.c: Ditto.
|
||||||
|
* subsys/win32k/objects/color.c: Ditto.
|
||||||
|
* subsys/win32k/objects/coord.c: Ditto.
|
||||||
|
* subsys/win32k/objects/dib.c: Ditto.
|
||||||
|
* subsys/win32k/objects/path.c: Ditto.
|
||||||
|
* subsys/win32k/objects/region.c: Ditto.
|
||||||
|
* subsys/win32k/objects/text.c: Ditto.
|
||||||
|
|
||||||
2003-08-13 Martin Fuchs <martin-fuchs@gmx.net>
|
2003-08-13 Martin Fuchs <martin-fuchs@gmx.net>
|
||||||
|
|
||||||
* subsys/system/explorer/taskbar/ex_bar.c, ex_menu.c
|
* subsys/system/explorer/taskbar/ex_bar.c, ex_menu.c:
|
||||||
make explorer bar look more like windows taskbar bar
|
Make explorer bar look more like windows taskbar bar
|
||||||
|
|
||||||
2003-08-09 Martin Fuchs <martin-fuchs@gmx.net>
|
2003-08-09 Martin Fuchs <martin-fuchs@gmx.net>
|
||||||
|
|
||||||
* subsys/system/explorer Subclassing of shell window for drawing
|
* subsys/system/explorer/*.c: Subclassing of shell window for drawing
|
||||||
desktop background.
|
desktop background. Open child folders by double click in
|
||||||
* open child folders by double click in ShellBrowserChild
|
ShellBrowserChild
|
||||||
|
|
||||||
2003-08-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
|
2003-08-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
|
||||||
|
|
||||||
|
|
|
@ -585,7 +585,7 @@ DWORD
|
||||||
STDCALL
|
STDCALL
|
||||||
NtUserGetClassName(HWND hWnd,
|
NtUserGetClassName(HWND hWnd,
|
||||||
LPWSTR lpClassName,
|
LPWSTR lpClassName,
|
||||||
int nMaxCount);
|
ULONG nMaxCount);
|
||||||
|
|
||||||
DWORD
|
DWORD
|
||||||
STDCALL
|
STDCALL
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: dib16bpp.c,v 1.6 2003/08/12 21:55:47 gvg Exp $ */
|
/* $Id: dib16bpp.c,v 1.7 2003/08/13 20:24:04 chorns Exp $ */
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -250,7 +250,7 @@ DIB_16BPP_BitBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
||||||
PULONG DestBits;
|
PULONG DestBits;
|
||||||
BOOL UsesSource = ((Rop4 & 0xCC0000) >> 2) != (Rop4 & 0x330000);
|
BOOL UsesSource = ((Rop4 & 0xCC0000) >> 2) != (Rop4 & 0x330000);
|
||||||
BOOL UsesPattern = ((Rop4 & 0xF00000) >> 4) != (Rop4 & 0x0F0000);
|
BOOL UsesPattern = ((Rop4 & 0xF00000) >> 4) != (Rop4 & 0x0F0000);
|
||||||
ULONG RoundedRight = DestRect->right - (DestRect->right & 0x1);
|
LONG RoundedRight = DestRect->right - (DestRect->right & 0x1);
|
||||||
|
|
||||||
if (Rop4 == SRCCOPY)
|
if (Rop4 == SRCCOPY)
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: dib1bpp.c,v 1.8 2003/08/12 21:55:47 gvg Exp $ */
|
/* $Id: dib1bpp.c,v 1.9 2003/08/13 20:24:04 chorns Exp $ */
|
||||||
|
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
@ -273,7 +273,7 @@ DIB_1BPP_BitBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
||||||
PULONG DestBits;
|
PULONG DestBits;
|
||||||
BOOL UsesSource = ((Rop4 & 0xCC0000) >> 2) != (Rop4 & 0x330000);
|
BOOL UsesSource = ((Rop4 & 0xCC0000) >> 2) != (Rop4 & 0x330000);
|
||||||
BOOL UsesPattern = ((Rop4 & 0xF00000) >> 4) != (Rop4 & 0x0F0000);
|
BOOL UsesPattern = ((Rop4 & 0xF00000) >> 4) != (Rop4 & 0x0F0000);
|
||||||
ULONG RoundedRight = DestRect->right - (DestRect->right & 0x7);
|
LONG RoundedRight = DestRect->right - (DestRect->right & 0x7);
|
||||||
|
|
||||||
if (Rop4 == SRCCOPY)
|
if (Rop4 == SRCCOPY)
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: dib32bpp.c,v 1.4 2003/08/12 21:55:47 gvg Exp $ */
|
/* $Id: dib32bpp.c,v 1.5 2003/08/13 20:24:04 chorns Exp $ */
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -80,7 +80,7 @@ DIB_32BPP_BitBltSrcCopy(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
||||||
PRECTL DestRect, POINTL *SourcePoint,
|
PRECTL DestRect, POINTL *SourcePoint,
|
||||||
XLATEOBJ *ColorTranslation)
|
XLATEOBJ *ColorTranslation)
|
||||||
{
|
{
|
||||||
ULONG i, j, sx, sy, xColor, f1;
|
LONG i, j, sx, sy, xColor, f1;
|
||||||
PBYTE SourceBits, DestBits, SourceLine, DestLine;
|
PBYTE SourceBits, DestBits, SourceLine, DestLine;
|
||||||
PBYTE SourceBits_4BPP, SourceLine_4BPP;
|
PBYTE SourceBits_4BPP, SourceLine_4BPP;
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: dib4bpp.c,v 1.17 2003/08/12 21:55:47 gvg Exp $ */
|
/* $Id: dib4bpp.c,v 1.18 2003/08/13 20:24:04 chorns Exp $ */
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -244,7 +244,7 @@ DIB_4BPP_BitBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
||||||
PULONG DestBits;
|
PULONG DestBits;
|
||||||
BOOL UsesSource = ((Rop4 & 0xCC0000) >> 2) != (Rop4 & 0x330000);
|
BOOL UsesSource = ((Rop4 & 0xCC0000) >> 2) != (Rop4 & 0x330000);
|
||||||
BOOL UsesPattern = ((Rop4 & 0xF00000) >> 4) != (Rop4 & 0x0F0000);
|
BOOL UsesPattern = ((Rop4 & 0xF00000) >> 4) != (Rop4 & 0x0F0000);
|
||||||
ULONG RoundedRight = DestRect->right - (DestRect->right & 0x7);
|
LONG RoundedRight = DestRect->right - (DestRect->right & 0x7);
|
||||||
static const ULONG ExpandSolidColor[16] =
|
static const ULONG ExpandSolidColor[16] =
|
||||||
{
|
{
|
||||||
0x00000000 /* 0 */,
|
0x00000000 /* 0 */,
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: dib8bpp.c,v 1.4 2003/08/12 21:55:47 gvg Exp $ */
|
/* $Id: dib8bpp.c,v 1.5 2003/08/13 20:24:04 chorns Exp $ */
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -78,7 +78,7 @@ DIB_8BPP_BitBltSrcCopy(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
||||||
PRECTL DestRect, POINTL *SourcePoint,
|
PRECTL DestRect, POINTL *SourcePoint,
|
||||||
XLATEOBJ *ColorTranslation)
|
XLATEOBJ *ColorTranslation)
|
||||||
{
|
{
|
||||||
ULONG i, j, sx, sy, xColor, f1;
|
LONG i, j, sx, sy, xColor, f1;
|
||||||
PBYTE SourceBits, DestBits, SourceLine, DestLine;
|
PBYTE SourceBits, DestBits, SourceLine, DestLine;
|
||||||
PBYTE SourceBits_4BPP, SourceLine_4BPP;
|
PBYTE SourceBits_4BPP, SourceLine_4BPP;
|
||||||
|
|
||||||
|
@ -250,7 +250,7 @@ DIB_8BPP_BitBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
||||||
PULONG DestBits;
|
PULONG DestBits;
|
||||||
BOOL UsesSource = ((Rop4 & 0xCC0000) >> 2) != (Rop4 & 0x330000);
|
BOOL UsesSource = ((Rop4 & 0xCC0000) >> 2) != (Rop4 & 0x330000);
|
||||||
BOOL UsesPattern = ((Rop4 & 0xF00000) >> 4) != (Rop4 & 0x0F0000);
|
BOOL UsesPattern = ((Rop4 & 0xF00000) >> 4) != (Rop4 & 0x0F0000);
|
||||||
ULONG RoundedRight = DestRect->right - (DestRect->right & 0x3);
|
LONG RoundedRight = DestRect->right - (DestRect->right & 0x3);
|
||||||
|
|
||||||
if (Rop4 == SRCCOPY)
|
if (Rop4 == SRCCOPY)
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*
|
*
|
||||||
* $Id: lineto.c,v 1.21 2003/08/04 19:57:05 royce Exp $
|
* $Id: lineto.c,v 1.22 2003/08/13 20:24:04 chorns Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ddk/winddi.h>
|
#include <ddk/winddi.h>
|
||||||
|
@ -343,7 +343,8 @@ EngLineTo(SURFOBJ *DestObj,
|
||||||
RECTL *RectBounds,
|
RECTL *RectBounds,
|
||||||
MIX mix)
|
MIX mix)
|
||||||
{
|
{
|
||||||
LONG x, y, deltax, deltay, i, xchange, ychange, hx, vy;
|
LONG x, y, deltax, deltay, xchange, ychange, hx, vy;
|
||||||
|
ULONG i;
|
||||||
ULONG Pixel = Brush->iSolidColor;
|
ULONG Pixel = Brush->iSolidColor;
|
||||||
SURFOBJ *OutputObj;
|
SURFOBJ *OutputObj;
|
||||||
SURFGDI *OutputGDI;
|
SURFGDI *OutputGDI;
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: mouse.c,v 1.26 2003/08/09 11:59:27 gvg Exp $
|
/* $Id: mouse.c,v 1.27 2003/08/13 20:24:04 chorns Exp $
|
||||||
*
|
*
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
* PURPOSE: Mouse
|
* PURPOSE: Mouse
|
||||||
|
@ -46,7 +46,7 @@ static BOOLEAN SafetySwitch = FALSE;
|
||||||
static BOOLEAN SafetySwitch2 = FALSE;
|
static BOOLEAN SafetySwitch2 = FALSE;
|
||||||
static BOOLEAN MouseEnabled = FALSE;
|
static BOOLEAN MouseEnabled = FALSE;
|
||||||
static LONG mouse_x, mouse_y;
|
static LONG mouse_x, mouse_y;
|
||||||
static UINT mouse_width = 0, mouse_height = 0;
|
static LONG mouse_width = 0, mouse_height = 0;
|
||||||
static ULONG PointerStatus;
|
static ULONG PointerStatus;
|
||||||
|
|
||||||
static UCHAR DefaultCursor[256] = {
|
static UCHAR DefaultCursor[256] = {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: xlate.c,v 1.20 2003/07/11 15:59:37 royce Exp $
|
/* $Id: xlate.c,v 1.21 2003/08/13 20:24:04 chorns Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -86,10 +86,11 @@ ClosestColorMatch(XLATEGDI *XlateGDI, ULONG SourceColor, ULONG *DestColors,
|
||||||
{
|
{
|
||||||
PVIDEO_CLUTDATA cSourceColor;
|
PVIDEO_CLUTDATA cSourceColor;
|
||||||
PVIDEO_CLUTDATA cDestColors;
|
PVIDEO_CLUTDATA cDestColors;
|
||||||
LONG idx = 0, i, rt;
|
LONG idx = 0;
|
||||||
|
ULONG i;
|
||||||
ULONG SourceRGB;
|
ULONG SourceRGB;
|
||||||
ULONG SourceRed, SourceGreen, SourceBlue;
|
ULONG SourceRed, SourceGreen, SourceBlue;
|
||||||
ULONG cxRed, cxGreen, cxBlue, BestMatch = 16777215;
|
ULONG cxRed, cxGreen, cxBlue, rt, BestMatch = 16777215;
|
||||||
|
|
||||||
// Simple cache -- only one value because we don't want to waste time
|
// Simple cache -- only one value because we don't want to waste time
|
||||||
// if the colors aren't very sequential
|
// if the colors aren't very sequential
|
||||||
|
@ -185,7 +186,7 @@ BitMasksFromPal(USHORT PalType, PPALGDI Palette,
|
||||||
*/
|
*/
|
||||||
static INT FASTCALL CalculateShift(ULONG Mask)
|
static INT FASTCALL CalculateShift(ULONG Mask)
|
||||||
{
|
{
|
||||||
INT Shift = 0;
|
ULONG Shift = 0;
|
||||||
ULONG LeftmostBit = 1 << (8 * sizeof(ULONG) - 1);
|
ULONG LeftmostBit = 1 << (8 * sizeof(ULONG) - 1);
|
||||||
|
|
||||||
while (0 == (Mask & LeftmostBit) && Shift < 8 * sizeof(ULONG))
|
while (0 == (Mask & LeftmostBit) && Shift < 8 * sizeof(ULONG))
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $Id: makefile,v 1.75 2003/08/13 13:58:11 royce Exp $
|
# $Id: makefile,v 1.76 2003/08/13 20:24:04 chorns Exp $
|
||||||
|
|
||||||
PATH_TO_TOP = ../..
|
PATH_TO_TOP = ../..
|
||||||
|
|
||||||
|
@ -26,8 +26,7 @@ TARGET_CFLAGS =\
|
||||||
$(CFLAGS_DBG) \
|
$(CFLAGS_DBG) \
|
||||||
-I$(PATH_TO_TOP)/ntoskrnl/include \
|
-I$(PATH_TO_TOP)/ntoskrnl/include \
|
||||||
-I$(FREETYPE_DIR)/include \
|
-I$(FREETYPE_DIR)/include \
|
||||||
-DUNICODE \
|
-DUNICODE
|
||||||
-Wall -Werror
|
|
||||||
|
|
||||||
# require os code to explicitly request A/W version of structs/functions
|
# require os code to explicitly request A/W version of structs/functions
|
||||||
TARGET_CFLAGS += -D_DISABLE_TIDENTS
|
TARGET_CFLAGS += -D_DISABLE_TIDENTS
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: driver.c,v 1.25 2003/05/18 17:16:17 ea Exp $
|
/* $Id: driver.c,v 1.26 2003/08/13 20:24:05 chorns Exp $
|
||||||
*
|
*
|
||||||
* GDI Driver support routines
|
* GDI Driver support routines
|
||||||
* (mostly swiped from Wine)
|
* (mostly swiped from Wine)
|
||||||
|
@ -160,7 +160,7 @@ PGD_ENABLEDRIVER DRIVER_FindDDIDriver(LPCWSTR Name)
|
||||||
BOOL DRIVER_BuildDDIFunctions(PDRVENABLEDATA DED,
|
BOOL DRIVER_BuildDDIFunctions(PDRVENABLEDATA DED,
|
||||||
PDRIVER_FUNCTIONS DF)
|
PDRIVER_FUNCTIONS DF)
|
||||||
{
|
{
|
||||||
int i;
|
ULONG i;
|
||||||
|
|
||||||
for (i=0; i<DED->c; i++)
|
for (i=0; i<DED->c; i++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: class.c,v 1.28 2003/08/11 21:10:49 royce Exp $
|
/* $Id: class.c,v 1.29 2003/08/13 20:24:05 chorns Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -190,7 +190,7 @@ NtUserGetClassInfo(HINSTANCE hInst,
|
||||||
ULONG FASTCALL
|
ULONG FASTCALL
|
||||||
W32kGetClassName(struct _WINDOW_OBJECT *WindowObject,
|
W32kGetClassName(struct _WINDOW_OBJECT *WindowObject,
|
||||||
LPWSTR lpClassName,
|
LPWSTR lpClassName,
|
||||||
int nMaxCount)
|
ULONG nMaxCount)
|
||||||
{
|
{
|
||||||
ULONG length;
|
ULONG length;
|
||||||
LPWSTR name;
|
LPWSTR name;
|
||||||
|
@ -247,7 +247,7 @@ DWORD STDCALL
|
||||||
NtUserGetClassName (
|
NtUserGetClassName (
|
||||||
HWND hWnd,
|
HWND hWnd,
|
||||||
LPWSTR lpClassName,
|
LPWSTR lpClassName,
|
||||||
int nMaxCount)
|
ULONG nMaxCount)
|
||||||
{
|
{
|
||||||
PWINDOW_OBJECT WindowObject;
|
PWINDOW_OBJECT WindowObject;
|
||||||
LONG Ret;
|
LONG Ret;
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: keyboard.c,v 1.7 2003/08/11 21:10:49 royce Exp $
|
/* $Id: keyboard.c,v 1.8 2003/08/13 20:24:05 chorns Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -212,7 +212,7 @@ static BOOL TryToTranslateChar( WORD wVirtKey,
|
||||||
if( !vkPtr->VirtualKey ) return FALSE;
|
if( !vkPtr->VirtualKey ) return FALSE;
|
||||||
if( wVirtKey == vkPtr->VirtualKey ) {
|
if( wVirtKey == vkPtr->VirtualKey ) {
|
||||||
for( j = 0; j < nStates; j++ ) {
|
for( j = 0; j < nStates; j++ ) {
|
||||||
if( j == ModBits ) { /* OK, we found a wchar with the correct
|
if( j == (int) ModBits ) { /* OK, we found a wchar with the correct
|
||||||
shift state and vk */
|
shift state and vk */
|
||||||
*pbDead = vkPtr->wch[j] == WCH_DEAD;
|
*pbDead = vkPtr->wch[j] == WCH_DEAD;
|
||||||
*pbLigature = vkPtr->wch[j] == WCH_LGTR;
|
*pbLigature = vkPtr->wch[j] == WCH_LGTR;
|
||||||
|
@ -391,7 +391,7 @@ NtUserTranslateMessage(LPMSG lpMsg,
|
||||||
NewMsg.message = (lpMsg->message == WM_KEYDOWN) ? WM_CHAR : WM_SYSCHAR;
|
NewMsg.message = (lpMsg->message == WM_KEYDOWN) ? WM_CHAR : WM_SYSCHAR;
|
||||||
if (dead_char)
|
if (dead_char)
|
||||||
{
|
{
|
||||||
int i;
|
ULONG i;
|
||||||
|
|
||||||
if (wp[0] == ' ') wp[0] = dead_char;
|
if (wp[0] == ' ') wp[0] = dead_char;
|
||||||
if (dead_char == 0xa2) dead_char = '(';
|
if (dead_char == 0xa2) dead_char = '(';
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: timer.c,v 1.9 2003/08/11 21:10:49 royce Exp $
|
/* $Id: timer.c,v 1.10 2003/08/13 20:24:05 chorns Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -199,7 +199,7 @@ NtUserSetTimer
|
||||||
/* find a free, handle-less timer id */
|
/* find a free, handle-less timer id */
|
||||||
Index = RtlFindClearBitsAndSet(&HandleLessTimersBitMap, 1, HintIndex);
|
Index = RtlFindClearBitsAndSet(&HandleLessTimersBitMap, 1, HintIndex);
|
||||||
|
|
||||||
if(Index == -1)
|
if(Index == (ULONG) -1)
|
||||||
{
|
{
|
||||||
/* FIXME: set the last error */
|
/* FIXME: set the last error */
|
||||||
ExReleaseFastMutex(&Mutex);
|
ExReleaseFastMutex(&Mutex);
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: window.c,v 1.89 2003/08/12 22:45:27 weiden Exp $
|
/* $Id: window.c,v 1.90 2003/08/13 20:24:05 chorns Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -2218,7 +2218,7 @@ NtUserBuildHwndList(
|
||||||
PUSER_HANDLE_TABLE HandleTable;
|
PUSER_HANDLE_TABLE HandleTable;
|
||||||
PLIST_ENTRY Current;
|
PLIST_ENTRY Current;
|
||||||
PUSER_HANDLE_BLOCK Block = NULL;
|
PUSER_HANDLE_BLOCK Block = NULL;
|
||||||
int i;
|
ULONG i;
|
||||||
|
|
||||||
Status = PsLookupThreadByThreadId ( (PVOID)dwThreadId, &Thread );
|
Status = PsLookupThreadByThreadId ( (PVOID)dwThreadId, &Thread );
|
||||||
if ( !NT_SUCCESS(Status) || !Thread )
|
if ( !NT_SUCCESS(Status) || !Thread )
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: bitmaps.c,v 1.31 2003/08/07 16:18:02 royce Exp $ */
|
/* $Id: bitmaps.c,v 1.32 2003/08/13 20:24:05 chorns Exp $ */
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -357,8 +357,8 @@ LONG STDCALL W32kSetBitmapBits(HBITMAP hBitmap,
|
||||||
DWORD Bytes,
|
DWORD Bytes,
|
||||||
CONST VOID *Bits)
|
CONST VOID *Bits)
|
||||||
{
|
{
|
||||||
DWORD height, ret;
|
LONG height, ret;
|
||||||
PBITMAPOBJ bmp;
|
PBITMAPOBJ bmp;
|
||||||
|
|
||||||
bmp = BITMAPOBJ_HandleToPtr (hBitmap);
|
bmp = BITMAPOBJ_HandleToPtr (hBitmap);
|
||||||
if (bmp == NULL || Bits == NULL)
|
if (bmp == NULL || Bits == NULL)
|
||||||
|
@ -549,20 +549,20 @@ INT STDCALL BITMAP_GetObject(BITMAPOBJ * bmp, INT count, LPVOID buffer)
|
||||||
{
|
{
|
||||||
if(bmp->dib)
|
if(bmp->dib)
|
||||||
{
|
{
|
||||||
if(count < sizeof(DIBSECTION))
|
if(count < (INT) sizeof(DIBSECTION))
|
||||||
{
|
{
|
||||||
if (count > sizeof(BITMAP)) count = sizeof(BITMAP);
|
if (count > (INT) sizeof(BITMAP)) count = sizeof(BITMAP);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (count > sizeof(DIBSECTION)) count = sizeof(DIBSECTION);
|
if (count > (INT) sizeof(DIBSECTION)) count = sizeof(DIBSECTION);
|
||||||
}
|
}
|
||||||
memcpy(buffer, bmp->dib, count);
|
memcpy(buffer, bmp->dib, count);
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (count > sizeof(BITMAP)) count = sizeof(BITMAP);
|
if (count > (INT) sizeof(BITMAP)) count = sizeof(BITMAP);
|
||||||
memcpy(buffer, &bmp->bitmap, count);
|
memcpy(buffer, &bmp->bitmap, count);
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: color.c,v 1.18 2003/08/11 21:10:49 royce Exp $ */
|
/* $Id: color.c,v 1.19 2003/08/13 20:24:05 chorns Exp $ */
|
||||||
|
|
||||||
// FIXME: Use PXLATEOBJ logicalToSystem instead of int *mapping
|
// FIXME: Use PXLATEOBJ logicalToSystem instead of int *mapping
|
||||||
|
|
||||||
|
@ -458,7 +458,7 @@ UINT STDCALL W32kSetPaletteEntries(HPALETTE hpal,
|
||||||
CONST LPPALETTEENTRY pe)
|
CONST LPPALETTEENTRY pe)
|
||||||
{
|
{
|
||||||
PPALOBJ palPtr;
|
PPALOBJ palPtr;
|
||||||
INT numEntries;
|
WORD numEntries;
|
||||||
|
|
||||||
palPtr = (PPALOBJ)AccessUserObject((ULONG)hpal);
|
palPtr = (PPALOBJ)AccessUserObject((ULONG)hpal);
|
||||||
if (!palPtr) return 0;
|
if (!palPtr) return 0;
|
||||||
|
@ -530,7 +530,7 @@ INT STDCALL COLOR_PaletteLookupPixel(PALETTEENTRY *palPalEntry, INT size,
|
||||||
|
|
||||||
if( r < diff ) { best = i; diff = r; }
|
if( r < diff ) { best = i; diff = r; }
|
||||||
}
|
}
|
||||||
return (XlateObj->pulXlate) ? XlateObj->pulXlate[best] : best;
|
return (XlateObj->pulXlate) ? (INT)XlateObj->pulXlate[best] : best;
|
||||||
}
|
}
|
||||||
|
|
||||||
COLORREF STDCALL COLOR_LookupNearestColor( PALETTEENTRY* palPalEntry, int size, COLORREF color )
|
COLORREF STDCALL COLOR_LookupNearestColor( PALETTEENTRY* palPalEntry, int size, COLORREF color )
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: coord.c,v 1.13 2003/07/22 20:02:08 ekohl Exp $
|
/* $Id: coord.c,v 1.14 2003/08/13 20:24:05 chorns Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -95,7 +95,7 @@ W32kDPtoLP(HDC hDC,
|
||||||
int Count)
|
int Count)
|
||||||
{
|
{
|
||||||
PDC Dc;
|
PDC Dc;
|
||||||
ULONG i;
|
INT i;
|
||||||
LPPOINT Points = (LPPOINT) ExAllocatePool( PagedPool, Count*sizeof(POINT));
|
LPPOINT Points = (LPPOINT) ExAllocatePool( PagedPool, Count*sizeof(POINT));
|
||||||
|
|
||||||
ASSERT(Points);
|
ASSERT(Points);
|
||||||
|
@ -180,7 +180,7 @@ BOOL STDCALL
|
||||||
W32kLPtoDP(HDC hDC, LPPOINT UnsafePoints, INT Count)
|
W32kLPtoDP(HDC hDC, LPPOINT UnsafePoints, INT Count)
|
||||||
{
|
{
|
||||||
PDC Dc;
|
PDC Dc;
|
||||||
ULONG i;
|
INT i;
|
||||||
LPPOINT Points = (LPPOINT) ExAllocatePool( PagedPool, Count*sizeof(POINT));
|
LPPOINT Points = (LPPOINT) ExAllocatePool( PagedPool, Count*sizeof(POINT));
|
||||||
|
|
||||||
ASSERT(Points);
|
ASSERT(Points);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* $Id: dib.c,v 1.25 2003/08/13 00:50:24 royce Exp $
|
* $Id: dib.c,v 1.26 2003/08/13 20:24:05 chorns Exp $
|
||||||
*
|
*
|
||||||
* ReactOS W32 Subsystem
|
* ReactOS W32 Subsystem
|
||||||
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 ReactOS Team
|
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 ReactOS Team
|
||||||
|
@ -59,7 +59,7 @@ UINT STDCALL W32kSetDIBColorTable(HDC hDC,
|
||||||
if (dc->w.bitsPerPixel <= 8)
|
if (dc->w.bitsPerPixel <= 8)
|
||||||
{
|
{
|
||||||
palEntry = palette->logpalette->palPalEntry + StartIndex;
|
palEntry = palette->logpalette->palPalEntry + StartIndex;
|
||||||
if (StartIndex + Entries > (1 << dc->w.bitsPerPixel))
|
if (StartIndex + Entries > (UINT) (1 << dc->w.bitsPerPixel))
|
||||||
Entries = (1 << dc->w.bitsPerPixel) - StartIndex;
|
Entries = (1 << dc->w.bitsPerPixel) - StartIndex;
|
||||||
|
|
||||||
if (StartIndex + Entries > palette->logpalette->palNumEntries)
|
if (StartIndex + Entries > palette->logpalette->palNumEntries)
|
||||||
|
@ -329,7 +329,7 @@ INT STDCALL W32kGetDIBits(HDC hDC,
|
||||||
}
|
}
|
||||||
Result = 1;
|
Result = 1;
|
||||||
}
|
}
|
||||||
else if (0 == StartScan && Info.bmiHeader.biHeight == StartScan + ScanLines &&
|
else if (0 == StartScan && Info.bmiHeader.biHeight == (LONG) (StartScan + ScanLines) &&
|
||||||
Info.bmiHeader.biWidth == BitmapObj->bitmap.bmWidth &&
|
Info.bmiHeader.biWidth == BitmapObj->bitmap.bmWidth &&
|
||||||
Info.bmiHeader.biHeight == BitmapObj->bitmap.bmHeight &&
|
Info.bmiHeader.biHeight == BitmapObj->bitmap.bmHeight &&
|
||||||
Info.bmiHeader.biPlanes == BitmapObj->bitmap.bmPlanes &&
|
Info.bmiHeader.biPlanes == BitmapObj->bitmap.bmPlanes &&
|
||||||
|
@ -605,7 +605,8 @@ DIB_CreateDIBSection(
|
||||||
|
|
||||||
// Fill BITMAP32 structure with DIB data
|
// Fill BITMAP32 structure with DIB data
|
||||||
BITMAPINFOHEADER *bi = &bmi->bmiHeader;
|
BITMAPINFOHEADER *bi = &bmi->bmiHeader;
|
||||||
INT effHeight, totalSize;
|
INT effHeight;
|
||||||
|
ULONG totalSize;
|
||||||
UINT Entries = 0;
|
UINT Entries = 0;
|
||||||
BITMAP bm;
|
BITMAP bm;
|
||||||
|
|
||||||
|
@ -617,7 +618,7 @@ DIB_CreateDIBSection(
|
||||||
bm.bmType = 0;
|
bm.bmType = 0;
|
||||||
bm.bmWidth = bi->biWidth;
|
bm.bmWidth = bi->biWidth;
|
||||||
bm.bmHeight = effHeight;
|
bm.bmHeight = effHeight;
|
||||||
bm.bmWidthBytes = ovr_pitch ? ovr_pitch : DIB_GetDIBWidthBytes(bm.bmWidth, bi->biBitCount);
|
bm.bmWidthBytes = ovr_pitch ? ovr_pitch : (ULONG) DIB_GetDIBWidthBytes(bm.bmWidth, bi->biBitCount);
|
||||||
|
|
||||||
bm.bmPlanes = bi->biPlanes;
|
bm.bmPlanes = bi->biPlanes;
|
||||||
bm.bmBitsPixel = bi->biBitCount;
|
bm.bmBitsPixel = bi->biBitCount;
|
||||||
|
@ -626,7 +627,7 @@ DIB_CreateDIBSection(
|
||||||
// Get storage location for DIB bits. Only use biSizeImage if it's valid and
|
// Get storage location for DIB bits. Only use biSizeImage if it's valid and
|
||||||
// we're dealing with a compressed bitmap. Otherwise, use width * height.
|
// we're dealing with a compressed bitmap. Otherwise, use width * height.
|
||||||
totalSize = bi->biSizeImage && bi->biCompression != BI_RGB
|
totalSize = bi->biSizeImage && bi->biCompression != BI_RGB
|
||||||
? bi->biSizeImage : bm.bmWidthBytes * effHeight;
|
? bi->biSizeImage : (ULONG) (bm.bmWidthBytes * effHeight);
|
||||||
|
|
||||||
if (section)
|
if (section)
|
||||||
/* bm.bmBits = MapViewOfFile(section, FILE_MAP_ALL_ACCESS,
|
/* bm.bmBits = MapViewOfFile(section, FILE_MAP_ALL_ACCESS,
|
||||||
|
@ -868,7 +869,7 @@ RGBQUAD * FASTCALL
|
||||||
DIB_MapPaletteColors(PDC dc, CONST BITMAPINFO* lpbmi)
|
DIB_MapPaletteColors(PDC dc, CONST BITMAPINFO* lpbmi)
|
||||||
{
|
{
|
||||||
RGBQUAD *lpRGB;
|
RGBQUAD *lpRGB;
|
||||||
int nNumColors,i;
|
ULONG nNumColors,i;
|
||||||
DWORD *lpIndex;
|
DWORD *lpIndex;
|
||||||
PPALOBJ palObj;
|
PPALOBJ palObj;
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: path.c,v 1.11 2003/08/11 21:10:49 royce Exp $ */
|
/* $Id: path.c,v 1.12 2003/08/13 20:24:05 chorns Exp $ */
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <ddk/ntddk.h>
|
#include <ddk/ntddk.h>
|
||||||
|
@ -517,7 +517,7 @@ BOOL STDCALL PATH_PolyBezierTo(HDC hdc, const POINT *pts, DWORD cbPoints)
|
||||||
{
|
{
|
||||||
GdiPath *pPath;
|
GdiPath *pPath;
|
||||||
POINT pt;
|
POINT pt;
|
||||||
INT i;
|
ULONG i;
|
||||||
|
|
||||||
if(!PATH_GetPathFromHDC(hdc, &pPath))
|
if(!PATH_GetPathFromHDC(hdc, &pPath))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -550,7 +550,7 @@ BOOL STDCALL PATH_PolyBezier(HDC hdc, const POINT *pts, DWORD cbPoints)
|
||||||
{
|
{
|
||||||
GdiPath *pPath;
|
GdiPath *pPath;
|
||||||
POINT pt;
|
POINT pt;
|
||||||
INT i;
|
ULONG i;
|
||||||
|
|
||||||
if(!PATH_GetPathFromHDC(hdc, &pPath))
|
if(!PATH_GetPathFromHDC(hdc, &pPath))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -572,7 +572,7 @@ BOOL STDCALL PATH_Polyline(HDC hdc, const POINT *pts, DWORD cbPoints)
|
||||||
{
|
{
|
||||||
GdiPath *pPath;
|
GdiPath *pPath;
|
||||||
POINT pt;
|
POINT pt;
|
||||||
INT i;
|
ULONG i;
|
||||||
|
|
||||||
if(!PATH_GetPathFromHDC(hdc, &pPath))
|
if(!PATH_GetPathFromHDC(hdc, &pPath))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -594,7 +594,7 @@ BOOL STDCALL PATH_PolylineTo(HDC hdc, const POINT *pts, DWORD cbPoints)
|
||||||
{
|
{
|
||||||
GdiPath *pPath;
|
GdiPath *pPath;
|
||||||
POINT pt;
|
POINT pt;
|
||||||
INT i;
|
ULONG i;
|
||||||
|
|
||||||
if(!PATH_GetPathFromHDC(hdc, &pPath))
|
if(!PATH_GetPathFromHDC(hdc, &pPath))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -629,7 +629,7 @@ BOOL STDCALL PATH_Polygon(HDC hdc, const POINT *pts, DWORD cbPoints)
|
||||||
{
|
{
|
||||||
GdiPath *pPath;
|
GdiPath *pPath;
|
||||||
POINT pt;
|
POINT pt;
|
||||||
INT i;
|
ULONG i;
|
||||||
|
|
||||||
if(!PATH_GetPathFromHDC(hdc, &pPath))
|
if(!PATH_GetPathFromHDC(hdc, &pPath))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -654,7 +654,7 @@ BOOL STDCALL PATH_PolyPolygon( HDC hdc, const POINT* pts, const INT* counts,
|
||||||
{
|
{
|
||||||
GdiPath *pPath;
|
GdiPath *pPath;
|
||||||
POINT pt, startpt;
|
POINT pt, startpt;
|
||||||
INT poly, point, i;
|
ULONG poly, point, i;
|
||||||
|
|
||||||
if(!PATH_GetPathFromHDC(hdc, &pPath))
|
if(!PATH_GetPathFromHDC(hdc, &pPath))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -664,7 +664,7 @@ BOOL STDCALL PATH_PolyPolygon( HDC hdc, const POINT* pts, const INT* counts,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
for(i = 0, poly = 0; poly < polygons; poly++) {
|
for(i = 0, poly = 0; poly < polygons; poly++) {
|
||||||
for(point = 0; point < counts[poly]; point++, i++) {
|
for(point = 0; point < (ULONG) counts[poly]; point++, i++) {
|
||||||
pt = pts[i];
|
pt = pts[i];
|
||||||
if(!W32kLPtoDP(hdc, &pt, 1))
|
if(!W32kLPtoDP(hdc, &pt, 1))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -682,7 +682,7 @@ BOOL STDCALL PATH_PolyPolyline( HDC hdc, const POINT* pts, const DWORD* counts,
|
||||||
{
|
{
|
||||||
GdiPath *pPath;
|
GdiPath *pPath;
|
||||||
POINT pt;
|
POINT pt;
|
||||||
INT poly, point, i;
|
ULONG poly, point, i;
|
||||||
|
|
||||||
if(!PATH_GetPathFromHDC(hdc, &pPath))
|
if(!PATH_GetPathFromHDC(hdc, &pPath))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: region.c,v 1.32 2003/08/13 00:50:25 royce Exp $ */
|
/* $Id: region.c,v 1.33 2003/08/13 20:24:05 chorns Exp $ */
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <ddk/ntddk.h>
|
#include <ddk/ntddk.h>
|
||||||
|
@ -192,7 +192,7 @@ static BOOL FASTCALL REGION_CropAndOffsetRegion(const PPOINT off, const PRECT re
|
||||||
|
|
||||||
if(xrect)
|
if(xrect)
|
||||||
{
|
{
|
||||||
INT i;
|
ULONG i;
|
||||||
|
|
||||||
if(rgnDst != rgnSrc)
|
if(rgnDst != rgnSrc)
|
||||||
RtlCopyMemory(rgnDst, rgnSrc, sizeof(ROSRGNDATA));
|
RtlCopyMemory(rgnDst, rgnSrc, sizeof(ROSRGNDATA));
|
||||||
|
@ -227,7 +227,7 @@ static BOOL FASTCALL REGION_CropAndOffsetRegion(const PPOINT off, const PRECT re
|
||||||
else // region box and clipping rect appear to intersect
|
else // region box and clipping rect appear to intersect
|
||||||
{
|
{
|
||||||
PRECT lpr, rpr;
|
PRECT lpr, rpr;
|
||||||
INT i, j, clipa, clipb;
|
ULONG i, j, clipa, clipb;
|
||||||
INT left = rgnSrc->rdh.rcBound.right + off->x;
|
INT left = rgnSrc->rdh.rcBound.right + off->x;
|
||||||
INT right = rgnSrc->rdh.rcBound.left + off->x;
|
INT right = rgnSrc->rdh.rcBound.left + off->x;
|
||||||
|
|
||||||
|
@ -551,14 +551,13 @@ REGION_RegionOp(
|
||||||
INT ybot; /* Bottom of intersection */
|
INT ybot; /* Bottom of intersection */
|
||||||
INT ytop; /* Top of intersection */
|
INT ytop; /* Top of intersection */
|
||||||
RECT *oldRects; /* Old rects for newReg */
|
RECT *oldRects; /* Old rects for newReg */
|
||||||
INT prevBand; /* Index of start of
|
ULONG prevBand; /* Index of start of
|
||||||
* previous band in newReg */
|
* previous band in newReg */
|
||||||
INT curBand; /* Index of start of current
|
ULONG curBand; /* Index of start of current band in newReg */
|
||||||
* band in newReg */
|
|
||||||
RECT *r1BandEnd; /* End of current band in r1 */
|
RECT *r1BandEnd; /* End of current band in r1 */
|
||||||
RECT *r2BandEnd; /* End of current band in r2 */
|
RECT *r2BandEnd; /* End of current band in r2 */
|
||||||
INT top; /* Top of non-overlapping band */
|
ULONG top; /* Top of non-overlapping band */
|
||||||
INT bot; /* Bottom of non-overlapping band */
|
ULONG bot; /* Bottom of non-overlapping band */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialization:
|
* Initialization:
|
||||||
|
@ -1643,7 +1642,7 @@ W32kEqualRgn(HRGN hSrcRgn1,
|
||||||
{
|
{
|
||||||
PROSRGNDATA rgn1, rgn2;
|
PROSRGNDATA rgn1, rgn2;
|
||||||
PRECT tRect1, tRect2;
|
PRECT tRect1, tRect2;
|
||||||
int i;
|
ULONG i;
|
||||||
BOOL bRet = FALSE;
|
BOOL bRet = FALSE;
|
||||||
|
|
||||||
if( !(rgn1 = RGNDATA_LockRgn(hSrcRgn1)))
|
if( !(rgn1 = RGNDATA_LockRgn(hSrcRgn1)))
|
||||||
|
@ -1899,7 +1898,7 @@ W32kPtInRegion(HRGN hRgn,
|
||||||
INT Y)
|
INT Y)
|
||||||
{
|
{
|
||||||
PROSRGNDATA rgn;
|
PROSRGNDATA rgn;
|
||||||
int i;
|
ULONG i;
|
||||||
|
|
||||||
if( (rgn = RGNDATA_LockRgn(hRgn) ) )
|
if( (rgn = RGNDATA_LockRgn(hRgn) ) )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: text.c,v 1.41 2003/08/11 21:10:49 royce Exp $ */
|
/* $Id: text.c,v 1.42 2003/08/13 20:24:05 chorns Exp $ */
|
||||||
|
|
||||||
|
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
|
@ -543,7 +543,7 @@ TextIntGetTextExtentPoint(PTEXTOBJ TextObj,
|
||||||
FT_Face face;
|
FT_Face face;
|
||||||
FT_GlyphSlot glyph;
|
FT_GlyphSlot glyph;
|
||||||
INT error, n, glyph_index, i, previous;
|
INT error, n, glyph_index, i, previous;
|
||||||
ULONG TotalWidth = 0, MaxHeight = 0;
|
LONG TotalWidth = 0, MaxHeight = 0;
|
||||||
FT_CharMap charmap, found = NULL;
|
FT_CharMap charmap, found = NULL;
|
||||||
BOOL use_kerning;
|
BOOL use_kerning;
|
||||||
|
|
||||||
|
@ -1227,7 +1227,7 @@ W32kTranslateCharsetInfo(PDWORD Src,
|
||||||
NTSTATUS FASTCALL
|
NTSTATUS FASTCALL
|
||||||
TextIntRealizeFont(HFONT FontHandle)
|
TextIntRealizeFont(HFONT FontHandle)
|
||||||
{
|
{
|
||||||
UINT i;
|
LONG i;
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
PTEXTOBJ TextObj;
|
PTEXTOBJ TextObj;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue