Changes in crossover-wine-src-6.1.0 except for configure
[wine/hacks.git] / dlls / gdi32 / mfdrv / dc.c
blobe81b04c1d4b72184eede5950b7fa7fb81b9794a5
1 /*
2 * MetaFile driver DC value functions
4 * Copyright 1999 Huw D M Davies
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include "mfdrv/metafiledrv.h"
23 INT MFDRV_SaveDC( PHYSDEV dev )
25 return MFDRV_MetaParam0( dev, META_SAVEDC );
28 BOOL MFDRV_RestoreDC( PHYSDEV dev, INT level )
30 if(level != -1) return FALSE;
31 return MFDRV_MetaParam1( dev, META_RESTOREDC, level );
34 UINT MFDRV_SetTextAlign( PHYSDEV dev, UINT align )
36 return MFDRV_MetaParam2( dev, META_SETTEXTALIGN, HIWORD(align), LOWORD(align));
39 INT MFDRV_SetBkMode( PHYSDEV dev, INT mode )
41 return MFDRV_MetaParam1( dev, META_SETBKMODE, (WORD)mode);
44 INT MFDRV_SetROP2( PHYSDEV dev, INT rop )
46 return MFDRV_MetaParam1( dev, META_SETROP2, (WORD)rop);
49 INT MFDRV_SetRelAbs( PHYSDEV dev, INT mode )
51 return MFDRV_MetaParam1( dev, META_SETRELABS, (WORD)mode);
54 INT MFDRV_SetPolyFillMode( PHYSDEV dev, INT mode )
56 return MFDRV_MetaParam1( dev, META_SETPOLYFILLMODE, (WORD)mode);
59 INT MFDRV_SetStretchBltMode( PHYSDEV dev, INT mode )
61 return MFDRV_MetaParam1( dev, META_SETSTRETCHBLTMODE, (WORD)mode);
64 INT MFDRV_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bottom )
66 return MFDRV_MetaParam4( dev, META_INTERSECTCLIPRECT, left, top, right,
67 bottom );
70 INT MFDRV_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bottom )
72 return MFDRV_MetaParam4( dev, META_EXCLUDECLIPRECT, left, top, right,
73 bottom );
76 INT MFDRV_OffsetClipRgn( PHYSDEV dev, INT x, INT y )
78 return MFDRV_MetaParam2( dev, META_OFFSETCLIPRGN, x, y );
81 INT MFDRV_SetTextJustification( PHYSDEV dev, INT extra, INT breaks )
83 return MFDRV_MetaParam2( dev, META_SETTEXTJUSTIFICATION, extra, breaks );
86 INT MFDRV_SetTextCharacterExtra( PHYSDEV dev, INT extra )
88 if(!MFDRV_MetaParam1( dev, META_SETTEXTCHAREXTRA, extra ))
89 return 0x80000000;
90 return TRUE;
93 DWORD MFDRV_SetMapperFlags( PHYSDEV dev, DWORD flags )
95 return MFDRV_MetaParam2( dev, META_SETMAPPERFLAGS, HIWORD(flags),
96 LOWORD(flags) );
99 BOOL MFDRV_AbortPath( PHYSDEV dev )
101 return FALSE;
104 BOOL MFDRV_BeginPath( PHYSDEV dev )
106 return FALSE;
109 BOOL MFDRV_CloseFigure( PHYSDEV dev )
111 return FALSE;
114 BOOL MFDRV_EndPath( PHYSDEV dev )
116 return FALSE;
119 BOOL MFDRV_FillPath( PHYSDEV dev )
121 return FALSE;
124 BOOL MFDRV_FlattenPath( PHYSDEV dev )
126 return FALSE;
129 BOOL MFDRV_SelectClipPath( PHYSDEV dev, INT iMode )
131 return FALSE;
134 BOOL MFDRV_StrokeAndFillPath( PHYSDEV dev )
136 return FALSE;
139 BOOL MFDRV_StrokePath( PHYSDEV dev )
141 return FALSE;
144 BOOL MFDRV_WidenPath( PHYSDEV dev )
146 return FALSE;