Release 970824
[wine] / graphics / escape.c
1 /*
2  * Escape() function.
3  *
4  * Copyright 1994  Bob Amstadt
5  */
6
7 #include <stdio.h>
8 #include "windows.h"
9 #include "gdi.h"
10 #include "dc.h"
11
12 INT16 WINAPI Escape16( HDC16 hdc, INT16 nEscape, INT16 cbInput,
13                        SEGPTR lpszInData, SEGPTR lpvOutData )
14 {
15     DC * dc = DC_GetDCPtr( hdc );
16     if (!dc || !dc->funcs->pEscape) return 0;
17     return dc->funcs->pEscape( dc, nEscape, cbInput, lpszInData, lpvOutData );
18 }
19
20 INT32 WINAPI Escape32( HDC32 hdc, INT32 nEscape, INT32 cbInput,
21                        LPVOID lpszInData, LPVOID lpvOutData )
22 {
23     DC * dc = DC_GetDCPtr( hdc );
24     if (!dc || !dc->funcs->pEscape) return 0;
25     switch (nEscape) {
26     case GETSCALINGFACTOR:
27          return 1;
28         
29     }
30     return dc->funcs->pEscape( dc, nEscape, cbInput,
31                                (SEGPTR)lpszInData, (SEGPTR)lpvOutData );
32 }