Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Metafile GDI mapping mode functions |
| 3 | * |
| 4 | * Copyright 1996 Alexandre Julliard |
| 5 | */ |
| 6 | |
| 7 | #include "gdi.h" |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 8 | #include "metafiledrv.h" |
| 9 | |
| 10 | |
| 11 | /*********************************************************************** |
| 12 | * MFDRV_SetMapMode |
| 13 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 14 | INT MFDRV_SetMapMode( DC *dc, INT mode ) |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 15 | { |
Alexandre Julliard | 2239abb | 2000-11-05 02:05:07 +0000 | [diff] [blame] | 16 | INT prevMode = dc->MapMode; |
Huw D M Davies | b94e433 | 1999-04-15 16:46:51 +0000 | [diff] [blame] | 17 | MFDRV_MetaParam1( dc, META_SETMAPMODE, mode ); |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 18 | return prevMode; |
| 19 | } |
| 20 | |
| 21 | |
| 22 | /*********************************************************************** |
| 23 | * MFDRV_SetViewportExt |
| 24 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 25 | BOOL MFDRV_SetViewportExt( DC *dc, INT x, INT y ) |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 26 | { |
Huw D M Davies | b94e433 | 1999-04-15 16:46:51 +0000 | [diff] [blame] | 27 | MFDRV_MetaParam2( dc, META_SETVIEWPORTEXT, x, y ); |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 28 | return TRUE; |
| 29 | } |
| 30 | |
| 31 | |
| 32 | /*********************************************************************** |
| 33 | * MFDRV_SetViewportOrg |
| 34 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 35 | BOOL MFDRV_SetViewportOrg( DC *dc, INT x, INT y ) |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 36 | { |
Huw D M Davies | b94e433 | 1999-04-15 16:46:51 +0000 | [diff] [blame] | 37 | MFDRV_MetaParam2( dc, META_SETVIEWPORTORG, x, y ); |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 38 | return TRUE; |
| 39 | } |
| 40 | |
| 41 | |
| 42 | /*********************************************************************** |
| 43 | * MFDRV_SetWindowExt |
| 44 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 45 | BOOL MFDRV_SetWindowExt( DC *dc, INT x, INT y ) |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 46 | { |
Huw D M Davies | b94e433 | 1999-04-15 16:46:51 +0000 | [diff] [blame] | 47 | MFDRV_MetaParam2( dc, META_SETWINDOWEXT, x, y ); |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 48 | return TRUE; |
| 49 | } |
| 50 | |
| 51 | |
| 52 | /*********************************************************************** |
| 53 | * MFDRV_SetWindowOrg |
| 54 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 55 | BOOL MFDRV_SetWindowOrg( DC *dc, INT x, INT y ) |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 56 | { |
Huw D M Davies | b94e433 | 1999-04-15 16:46:51 +0000 | [diff] [blame] | 57 | MFDRV_MetaParam2( dc, META_SETWINDOWORG, x, y ); |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 58 | return TRUE; |
| 59 | } |
| 60 | |
| 61 | |
| 62 | /*********************************************************************** |
| 63 | * MFDRV_OffsetViewportOrg |
| 64 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 65 | BOOL MFDRV_OffsetViewportOrg( DC *dc, INT x, INT y ) |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 66 | { |
Huw D M Davies | b94e433 | 1999-04-15 16:46:51 +0000 | [diff] [blame] | 67 | MFDRV_MetaParam2( dc, META_OFFSETVIEWPORTORG, x, y ); |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 68 | return TRUE; |
| 69 | } |
| 70 | |
| 71 | |
| 72 | /*********************************************************************** |
| 73 | * MFDRV_OffsetWindowOrg |
| 74 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 75 | BOOL MFDRV_OffsetWindowOrg( DC *dc, INT x, INT y ) |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 76 | { |
Huw D M Davies | b94e433 | 1999-04-15 16:46:51 +0000 | [diff] [blame] | 77 | MFDRV_MetaParam2( dc, META_OFFSETWINDOWORG, x, y ); |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 78 | return TRUE; |
| 79 | } |
| 80 | |
| 81 | |
| 82 | /*********************************************************************** |
| 83 | * MFDRV_ScaleViewportExt |
| 84 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 85 | BOOL MFDRV_ScaleViewportExt( DC *dc, INT xNum, INT xDenom, |
| 86 | INT yNum, INT yDenom ) |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 87 | { |
Huw D M Davies | b94e433 | 1999-04-15 16:46:51 +0000 | [diff] [blame] | 88 | MFDRV_MetaParam4( dc, META_SCALEVIEWPORTEXT, xNum, xDenom, yNum, yDenom ); |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 89 | return TRUE; |
| 90 | } |
| 91 | |
| 92 | |
| 93 | /*********************************************************************** |
| 94 | * MFDRV_ScaleWindowExt |
| 95 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 96 | BOOL MFDRV_ScaleWindowExt( DC *dc, INT xNum, INT xDenom, |
| 97 | INT yNum, INT yDenom ) |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 98 | { |
Huw D M Davies | b94e433 | 1999-04-15 16:46:51 +0000 | [diff] [blame] | 99 | MFDRV_MetaParam4( dc, META_SCALEWINDOWEXT, xNum, xDenom, yNum, yDenom ); |
Alexandre Julliard | 7ebe1a4 | 1996-12-22 18:27:48 +0000 | [diff] [blame] | 100 | return TRUE; |
| 101 | } |
Huw D M Davies | b94e433 | 1999-04-15 16:46:51 +0000 | [diff] [blame] | 102 | |