-/* $Id: dc.c,v 1.59 2003/05/04 15:41:40 gvg Exp $
+/*
+ * ReactOS W32 Subsystem
+ * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 ReactOS Team
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/* $Id: dc.c,v 1.60 2003/05/18 17:16:18 ea Exp $
*
* DC.C - Device context functions
*
#include <win32k/text.h>
#include "../eng/handle.h"
#include <include/inteng.h>
+#include <include/eng.h>
#define NDEBUG
#include <win32k/debug1.h>
// --------------------------------------------------------- File Statics
-static void W32kSetDCState16(HDC hDC, HDC hDCSave);
+static VOID FASTCALL W32kSetDCState16(HDC hDC, HDC hDCSave);
// ----------------------------------------------------- Public Functions
return oldColor;
}
-static void W32kSetDCState16(HDC hDC, HDC hDCSave)
+STATIC VOID FASTCALL W32kSetDCState16(HDC hDC, HDC hDCSave)
{
PDC dc, dcs;
// ---------------------------------------------------- Private Interface
-HDC DC_AllocDC(LPCWSTR Driver)
+HDC FASTCALL DC_AllocDC(LPCWSTR Driver)
{
PDC NewDC;
HDC hDC;
return hDC;
}
-HDC DC_FindOpenDC(LPCWSTR Driver)
+HDC FASTCALL DC_FindOpenDC(LPCWSTR Driver)
{
return NULL;
}
/*!
* Initialize some common fields in the Device Context structure.
*/
-void DC_InitDC(HDC DCHandle)
+VOID FASTCALL DC_InitDC(HDC DCHandle)
{
// W32kRealizeDefaultPalette(DCHandle);
}
-void DC_FreeDC(HDC DCToFree)
+VOID FASTCALL DC_FreeDC(HDC DCToFree)
{
if (!GDIOBJ_FreeObj(DCToFree, GO_DC_MAGIC, GDIOBJFLAG_DEFAULT))
{
}
}
-BOOL DC_InternalDeleteDC( PDC DCToDelete )
+BOOL FASTCALL DC_InternalDeleteDC( PDC DCToDelete )
{
if( DCToDelete->DriverName )
ExFreePool(DCToDelete->DriverName);
return TRUE;
}
-HDC DC_GetNextDC (PDC pDC)
+HDC FASTCALL DC_GetNextDC (PDC pDC)
{
return pDC->hNext;
}
-void DC_SetNextDC (PDC pDC, HDC hNextDC)
+VOID FASTCALL DC_SetNextDC (PDC pDC, HDC hNextDC)
{
pDC->hNext = hNextDC;
}
-void
+VOID FASTCALL
DC_UpdateXforms(PDC dc)
{
XFORM xformWnd2Vport;
dc->w.vport2WorldValid = DC_InvertXform(&dc->w.xformWorld2Vport, &dc->w.xformVport2World);
}
-BOOL
+BOOL FASTCALL
DC_InvertXform(const XFORM *xformSrc,
XFORM *xformDest)
{
return TRUE;
}
+/* EOF */