Commit d0cbe85d authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

Add a few more 32->16 Escape conversions.

parent 6cd829bd
...@@ -36,12 +36,16 @@ INT WINAPI Escape( HDC hdc, INT nEscape, INT cbInput, ...@@ -36,12 +36,16 @@ INT WINAPI Escape( HDC hdc, INT nEscape, INT cbInput,
switch (nEscape) { switch (nEscape) {
/* Escape(hdc,QUERYESCSUPPORT,LPINT,NULL) */ /* Escape(hdc,QUERYESCSUPPORT,LPINT,NULL) */
/* Escape(hdc,EXT_DEVICE_CAPS,LPINT,NULL) */ /* Escape(hdc,EXT_DEVICE_CAPS,LPINT,NULL) */
/* Escape(hdc,SETLINECAP,LPINT,NULL) */
case QUERYESCSUPPORT: case QUERYESCSUPPORT:
case EXT_DEVICE_CAPS: case EXT_DEVICE_CAPS:
case SETLINECAP:
case SETLINEJOIN:
{ {
LPINT16 x = (LPINT16)SEGPTR_NEW(INT16); LPINT16 x = (LPINT16)SEGPTR_NEW(INT16);
*x = *(INT*)lpszInData; *x = *(INT*)lpszInData;
segin = SEGPTR_GET(x); segin = SEGPTR_GET(x);
cbInput = sizeof(INT16);
break; break;
} }
...@@ -53,6 +57,7 @@ INT WINAPI Escape( HDC hdc, INT nEscape, INT cbInput, ...@@ -53,6 +57,7 @@ INT WINAPI Escape( HDC hdc, INT nEscape, INT cbInput,
case GETPHYSPAGESIZE: case GETPHYSPAGESIZE:
case GETPRINTINGOFFSET: case GETPRINTINGOFFSET:
segout = SEGPTR_GET(SEGPTR_NEW(POINT16)); segout = SEGPTR_GET(SEGPTR_NEW(POINT16));
cbInput = sizeof(POINT16);
break; break;
/* Escape(hdc,GETTECHNOLOGY,NULL,LPSTR); */ /* Escape(hdc,GETTECHNOLOGY,NULL,LPSTR); */
...@@ -70,6 +75,7 @@ INT WINAPI Escape( HDC hdc, INT nEscape, INT cbInput, ...@@ -70,6 +75,7 @@ INT WINAPI Escape( HDC hdc, INT nEscape, INT cbInput,
segout = SEGPTR_GET(SEGPTR_NEW(INT16)); segout = SEGPTR_GET(SEGPTR_NEW(INT16));
segin = SEGPTR_GET(enab); segin = SEGPTR_GET(enab);
*enab = *(INT*)lpszInData; *enab = *(INT*)lpszInData;
cbInput = sizeof(INT16);
break; break;
} }
...@@ -105,6 +111,8 @@ INT WINAPI Escape( HDC hdc, INT nEscape, INT cbInput, ...@@ -105,6 +111,8 @@ INT WINAPI Escape( HDC hdc, INT nEscape, INT cbInput,
SEGPTR_FREE(PTR_SEG_TO_LIN(segin)); SEGPTR_FREE(PTR_SEG_TO_LIN(segin));
break; break;
case EXT_DEVICE_CAPS: case EXT_DEVICE_CAPS:
case SETLINECAP:
case SETLINEJOIN:
SEGPTR_FREE(PTR_SEG_TO_LIN(segin)); SEGPTR_FREE(PTR_SEG_TO_LIN(segin));
break; break;
case GETSCALINGFACTOR: case GETSCALINGFACTOR:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment