Added handling of SIGUSR2 for the new event interruption handling,
[wine/wine-kai.git] / graphics / metafiledrv / text.c
blobffee2a616f9974be17dc9100c200ec0502162aa6
1 /*
2 * metafile driver text functions
4 * Copyright 1993, 1994 Alexandre Julliard
6 */
8 #include <stdlib.h>
9 #include "windef.h"
10 #include "metafile.h"
11 #include "debug.h"
12 #include "xmalloc.h"
15 /***********************************************************************
16 * MFDRV_ExtTextOut
18 BOOL
19 MFDRV_ExtTextOut( DC *dc, INT x, INT y, UINT flags,
20 const RECT *lprect, LPCSTR str, UINT count,
21 const INT *lpDx )
23 RECT16 rect16;
24 LPINT16 lpdx16 = lpDx?(LPINT16)xmalloc(sizeof(INT16)*count):NULL;
25 BOOL ret;
26 int i;
28 if (lprect) CONV_RECT32TO16(lprect,&rect16);
29 if (lpdx16) for (i=count;i--;) lpdx16[i]=lpDx[i];
30 ret=MF_ExtTextOut(dc,x,y,flags,lprect?&rect16:NULL,str,count,lpdx16);
31 if (lpdx16) free(lpdx16);
32 return ret;