From d0cbe85d05059187f00cd5c4a2ed4f190359e741 Mon Sep 17 00:00:00 2001 From: Huw D M Davies Date: Sat, 22 May 1999 18:40:36 +0000 Subject: [PATCH] Add a few more 32->16 Escape conversions. --- graphics/escape.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/graphics/escape.c b/graphics/escape.c index 2281ca3dd07..c2ca6705b93 100644 --- a/graphics/escape.c +++ b/graphics/escape.c @@ -36,12 +36,16 @@ INT WINAPI Escape( HDC hdc, INT nEscape, INT cbInput, switch (nEscape) { /* Escape(hdc,QUERYESCSUPPORT,LPINT,NULL) */ /* Escape(hdc,EXT_DEVICE_CAPS,LPINT,NULL) */ + /* Escape(hdc,SETLINECAP,LPINT,NULL) */ case QUERYESCSUPPORT: case EXT_DEVICE_CAPS: + case SETLINECAP: + case SETLINEJOIN: { LPINT16 x = (LPINT16)SEGPTR_NEW(INT16); *x = *(INT*)lpszInData; segin = SEGPTR_GET(x); + cbInput = sizeof(INT16); break; } @@ -53,6 +57,7 @@ INT WINAPI Escape( HDC hdc, INT nEscape, INT cbInput, case GETPHYSPAGESIZE: case GETPRINTINGOFFSET: segout = SEGPTR_GET(SEGPTR_NEW(POINT16)); + cbInput = sizeof(POINT16); break; /* Escape(hdc,GETTECHNOLOGY,NULL,LPSTR); */ @@ -70,6 +75,7 @@ INT WINAPI Escape( HDC hdc, INT nEscape, INT cbInput, segout = SEGPTR_GET(SEGPTR_NEW(INT16)); segin = SEGPTR_GET(enab); *enab = *(INT*)lpszInData; + cbInput = sizeof(INT16); break; } @@ -105,6 +111,8 @@ INT WINAPI Escape( HDC hdc, INT nEscape, INT cbInput, SEGPTR_FREE(PTR_SEG_TO_LIN(segin)); break; case EXT_DEVICE_CAPS: + case SETLINECAP: + case SETLINEJOIN: SEGPTR_FREE(PTR_SEG_TO_LIN(segin)); break; case GETSCALINGFACTOR: