blob: 121972522a6a9c0fc23ede082770428727909fc4 [file] [log] [blame]
/*
* Win32 relay functions
* The implementations here perform only parameter conversions, and
* call the Win16 counterparts
*
* Copyright 1996 Martin von Loewis
*/
#include <stdio.h>
#include "windows.h"
#include "winerror.h"
#include "struct32.h"
#include "stddebug.h"
#include "debug.h"
void PARAM32_POINT32to16(const POINT32* p32,POINT* p16)
{
p16->x = p32->x;
p16->y = p32->y;
}
/****************************************************************
* MoveToEx (GDI32.254)
*/
BOOL WIN32_MoveToEx(HDC hdc,int x,int y,POINT32* p32)
{
POINT p;
if (p32 == NULL)
return MoveToEx(hdc,x,y,(POINT *)NULL);
else {
PARAM32_POINT32to16(p32,&p);
return MoveToEx(hdc,x,y,&p);
}
}