push a9ee6bdc492dbf6a3d2de76ff889abeabd04e8d0
[wine/hacks.git] / dlls / gdi32 / mfdrv / dc.c
blob44cedbc7431fa8d1421f89948e6caac520d13dea
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 CDECL MFDRV_SaveDC( PHYSDEV dev )
25 return MFDRV_MetaParam0( dev, META_SAVEDC );
28 BOOL CDECL MFDRV_RestoreDC( PHYSDEV dev, INT level )
30 return MFDRV_MetaParam1( dev, META_RESTOREDC, level );
33 UINT CDECL MFDRV_SetTextAlign( PHYSDEV dev, UINT align )
35 return MFDRV_MetaParam2( dev, META_SETTEXTALIGN, HIWORD(align), LOWORD(align));
38 INT CDECL MFDRV_SetBkMode( PHYSDEV dev, INT mode )
40 return MFDRV_MetaParam1( dev, META_SETBKMODE, (WORD)mode);
43 INT CDECL MFDRV_SetROP2( PHYSDEV dev, INT rop )
45 return MFDRV_MetaParam1( dev, META_SETROP2, (WORD)rop);
48 INT CDECL MFDRV_SetRelAbs( PHYSDEV dev, INT mode )
50 return MFDRV_MetaParam1( dev, META_SETRELABS, (WORD)mode);
53 INT CDECL MFDRV_SetPolyFillMode( PHYSDEV dev, INT mode )
55 return MFDRV_MetaParam1( dev, META_SETPOLYFILLMODE, (WORD)mode);
58 INT CDECL MFDRV_SetStretchBltMode( PHYSDEV dev, INT mode )
60 return MFDRV_MetaParam1( dev, META_SETSTRETCHBLTMODE, (WORD)mode);
63 INT CDECL MFDRV_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bottom )
65 return MFDRV_MetaParam4( dev, META_INTERSECTCLIPRECT, left, top, right,
66 bottom );
69 INT CDECL MFDRV_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bottom )
71 return MFDRV_MetaParam4( dev, META_EXCLUDECLIPRECT, left, top, right,
72 bottom );
75 INT CDECL MFDRV_OffsetClipRgn( PHYSDEV dev, INT x, INT y )
77 return MFDRV_MetaParam2( dev, META_OFFSETCLIPRGN, x, y );
80 INT CDECL MFDRV_SetTextJustification( PHYSDEV dev, INT extra, INT breaks )
82 return MFDRV_MetaParam2( dev, META_SETTEXTJUSTIFICATION, extra, breaks );
85 INT CDECL MFDRV_SetTextCharacterExtra( PHYSDEV dev, INT extra )
87 if(!MFDRV_MetaParam1( dev, META_SETTEXTCHAREXTRA, extra ))
88 return 0x80000000;
89 return TRUE;
92 DWORD CDECL MFDRV_SetMapperFlags( PHYSDEV dev, DWORD flags )
94 return MFDRV_MetaParam2( dev, META_SETMAPPERFLAGS, HIWORD(flags),
95 LOWORD(flags) );
98 BOOL CDECL MFDRV_AbortPath( PHYSDEV dev )
100 return FALSE;
103 BOOL CDECL MFDRV_BeginPath( PHYSDEV dev )
105 return FALSE;
108 BOOL CDECL MFDRV_CloseFigure( PHYSDEV dev )
110 return FALSE;
113 BOOL CDECL MFDRV_EndPath( PHYSDEV dev )
115 return FALSE;
118 BOOL CDECL MFDRV_FillPath( PHYSDEV dev )
120 return FALSE;
123 BOOL CDECL MFDRV_FlattenPath( PHYSDEV dev )
125 return FALSE;
128 BOOL CDECL MFDRV_SelectClipPath( PHYSDEV dev, INT iMode )
130 return FALSE;
133 BOOL CDECL MFDRV_StrokeAndFillPath( PHYSDEV dev )
135 return FALSE;
138 BOOL CDECL MFDRV_StrokePath( PHYSDEV dev )
140 return FALSE;
143 BOOL CDECL MFDRV_WidenPath( PHYSDEV dev )
145 return FALSE;