wininet: Support the Cache-Control max-age directive for setting url cache entry...
[wine/testsucceed.git] / dlls / gdi32 / mfdrv / mapping.c
blobf306cc66599d4e6394f42ad91224775232e8c884
1 /*
2 * Metafile GDI mapping mode functions
4 * Copyright 1996 Alexandre Julliard
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 <stdarg.h>
22 #include "windef.h"
23 #include "winbase.h"
24 #include "wingdi.h"
25 #include "gdi_private.h"
26 #include "mfdrv/metafiledrv.h"
29 /***********************************************************************
30 * MFDRV_SetMapMode
32 INT CDECL MFDRV_SetMapMode( PHYSDEV dev, INT mode )
34 if(!MFDRV_MetaParam1( dev, META_SETMAPMODE, mode ))
35 return FALSE;
36 return GDI_NO_MORE_WORK;
40 /***********************************************************************
41 * MFDRV_SetViewportExt
43 INT CDECL MFDRV_SetViewportExt( PHYSDEV dev, INT x, INT y )
45 if(!MFDRV_MetaParam2( dev, META_SETVIEWPORTEXT, x, y ))
46 return FALSE;
47 return GDI_NO_MORE_WORK;
51 /***********************************************************************
52 * MFDRV_SetViewportOrg
54 INT CDECL MFDRV_SetViewportOrg( PHYSDEV dev, INT x, INT y )
56 if(!MFDRV_MetaParam2( dev, META_SETVIEWPORTORG, x, y ))
57 return FALSE;
58 return GDI_NO_MORE_WORK;
62 /***********************************************************************
63 * MFDRV_SetWindowExt
65 INT CDECL MFDRV_SetWindowExt( PHYSDEV dev, INT x, INT y )
67 if(!MFDRV_MetaParam2( dev, META_SETWINDOWEXT, x, y ))
68 return FALSE;
69 return GDI_NO_MORE_WORK;
73 /***********************************************************************
74 * MFDRV_SetWindowOrg
76 INT CDECL MFDRV_SetWindowOrg( PHYSDEV dev, INT x, INT y )
78 if(!MFDRV_MetaParam2( dev, META_SETWINDOWORG, x, y ))
79 return FALSE;
80 return GDI_NO_MORE_WORK;
84 /***********************************************************************
85 * MFDRV_OffsetViewportOrg
87 INT CDECL MFDRV_OffsetViewportOrg( PHYSDEV dev, INT x, INT y )
89 if(!MFDRV_MetaParam2( dev, META_OFFSETVIEWPORTORG, x, y ))
90 return FALSE;
91 return GDI_NO_MORE_WORK;
95 /***********************************************************************
96 * MFDRV_OffsetWindowOrg
98 INT CDECL MFDRV_OffsetWindowOrg( PHYSDEV dev, INT x, INT y )
100 if(!MFDRV_MetaParam2( dev, META_OFFSETWINDOWORG, x, y ))
101 return FALSE;
102 return GDI_NO_MORE_WORK;
106 /***********************************************************************
107 * MFDRV_ScaleViewportExt
109 INT CDECL MFDRV_ScaleViewportExt( PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom )
111 if(!MFDRV_MetaParam4( dev, META_SCALEVIEWPORTEXT, xNum, xDenom, yNum, yDenom ))
112 return FALSE;
113 return GDI_NO_MORE_WORK;
117 /***********************************************************************
118 * MFDRV_ScaleWindowExt
120 INT CDECL MFDRV_ScaleWindowExt( PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom )
122 if(!MFDRV_MetaParam4( dev, META_SCALEWINDOWEXT, xNum, xDenom, yNum, yDenom ))
123 return FALSE;
124 return GDI_NO_MORE_WORK;