1996-12-22 19:27:48 +01:00
|
|
|
/*
|
|
|
|
* Metafile GDI mapping mode functions
|
|
|
|
*
|
|
|
|
* Copyright 1996 Alexandre Julliard
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1996-12-22 19:27:48 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "gdi.h"
|
2002-03-27 22:13:40 +01:00
|
|
|
#include "mfdrv/metafiledrv.h"
|
1996-12-22 19:27:48 +01:00
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* MFDRV_SetMapMode
|
|
|
|
*/
|
2002-03-28 23:22:05 +01:00
|
|
|
INT MFDRV_SetMapMode( PHYSDEV dev, INT mode )
|
1996-12-22 19:27:48 +01:00
|
|
|
{
|
2002-08-17 20:32:12 +02:00
|
|
|
if(!MFDRV_MetaParam1( dev, META_SETMAPMODE, mode ))
|
|
|
|
return FALSE;
|
|
|
|
return GDI_NO_MORE_WORK;
|
1996-12-22 19:27:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* MFDRV_SetViewportExt
|
|
|
|
*/
|
2002-08-17 20:32:12 +02:00
|
|
|
INT MFDRV_SetViewportExt( PHYSDEV dev, INT x, INT y )
|
1996-12-22 19:27:48 +01:00
|
|
|
{
|
2002-08-17 20:32:12 +02:00
|
|
|
if(!MFDRV_MetaParam2( dev, META_SETVIEWPORTEXT, x, y ))
|
|
|
|
return FALSE;
|
|
|
|
return GDI_NO_MORE_WORK;
|
1996-12-22 19:27:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* MFDRV_SetViewportOrg
|
|
|
|
*/
|
2002-08-17 20:32:12 +02:00
|
|
|
INT MFDRV_SetViewportOrg( PHYSDEV dev, INT x, INT y )
|
1996-12-22 19:27:48 +01:00
|
|
|
{
|
2002-08-17 20:32:12 +02:00
|
|
|
if(!MFDRV_MetaParam2( dev, META_SETVIEWPORTORG, x, y ))
|
|
|
|
return FALSE;
|
|
|
|
return GDI_NO_MORE_WORK;
|
1996-12-22 19:27:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* MFDRV_SetWindowExt
|
|
|
|
*/
|
2002-08-17 20:32:12 +02:00
|
|
|
INT MFDRV_SetWindowExt( PHYSDEV dev, INT x, INT y )
|
1996-12-22 19:27:48 +01:00
|
|
|
{
|
2002-08-17 20:32:12 +02:00
|
|
|
if(!MFDRV_MetaParam2( dev, META_SETWINDOWEXT, x, y ))
|
|
|
|
return FALSE;
|
|
|
|
return GDI_NO_MORE_WORK;
|
1996-12-22 19:27:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* MFDRV_SetWindowOrg
|
|
|
|
*/
|
2002-08-17 20:32:12 +02:00
|
|
|
INT MFDRV_SetWindowOrg( PHYSDEV dev, INT x, INT y )
|
1996-12-22 19:27:48 +01:00
|
|
|
{
|
2002-08-17 20:32:12 +02:00
|
|
|
if(!MFDRV_MetaParam2( dev, META_SETWINDOWORG, x, y ))
|
|
|
|
return FALSE;
|
|
|
|
return GDI_NO_MORE_WORK;
|
1996-12-22 19:27:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* MFDRV_OffsetViewportOrg
|
|
|
|
*/
|
2002-08-17 20:32:12 +02:00
|
|
|
INT MFDRV_OffsetViewportOrg( PHYSDEV dev, INT x, INT y )
|
1996-12-22 19:27:48 +01:00
|
|
|
{
|
2002-08-17 20:32:12 +02:00
|
|
|
if(!MFDRV_MetaParam2( dev, META_OFFSETVIEWPORTORG, x, y ))
|
|
|
|
return FALSE;
|
|
|
|
return GDI_NO_MORE_WORK;
|
1996-12-22 19:27:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* MFDRV_OffsetWindowOrg
|
|
|
|
*/
|
2002-08-17 20:32:12 +02:00
|
|
|
INT MFDRV_OffsetWindowOrg( PHYSDEV dev, INT x, INT y )
|
1996-12-22 19:27:48 +01:00
|
|
|
{
|
2002-08-17 20:32:12 +02:00
|
|
|
if(!MFDRV_MetaParam2( dev, META_OFFSETWINDOWORG, x, y ))
|
|
|
|
return FALSE;
|
|
|
|
return GDI_NO_MORE_WORK;
|
1996-12-22 19:27:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* MFDRV_ScaleViewportExt
|
|
|
|
*/
|
2002-08-17 20:32:12 +02:00
|
|
|
INT MFDRV_ScaleViewportExt( PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom )
|
1996-12-22 19:27:48 +01:00
|
|
|
{
|
2002-08-17 20:32:12 +02:00
|
|
|
if(!MFDRV_MetaParam4( dev, META_SCALEVIEWPORTEXT, xNum, xDenom, yNum, yDenom ))
|
|
|
|
return FALSE;
|
|
|
|
return GDI_NO_MORE_WORK;
|
1996-12-22 19:27:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* MFDRV_ScaleWindowExt
|
|
|
|
*/
|
2002-08-17 20:32:12 +02:00
|
|
|
INT MFDRV_ScaleWindowExt( PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom )
|
1996-12-22 19:27:48 +01:00
|
|
|
{
|
2002-08-17 20:32:12 +02:00
|
|
|
if(!MFDRV_MetaParam4( dev, META_SCALEWINDOWEXT, xNum, xDenom, yNum, yDenom ))
|
|
|
|
return FALSE;
|
|
|
|
return GDI_NO_MORE_WORK;
|
1996-12-22 19:27:48 +01:00
|
|
|
}
|