Commit 9adaca0f authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

gdi32: Handle NEXTBAND escape in Escape().

parent cd4f48f2
......@@ -56,6 +56,7 @@ enum print_flags
CALL_START_PAGE = 0x1,
CALL_END_PAGE = 0x2,
WRITE_DEVMODE = 0x4,
BANDING = 0x8,
};
struct print
......@@ -560,6 +561,24 @@ INT WINAPI Escape( HDC hdc, INT escape, INT in_count, const char *in_data, void
case ABORTDOC:
return AbortDoc( hdc );
case NEXTBAND:
{
RECT *rect = out_data;
struct print *print;
DC_ATTR *dc_attr;
if (!(dc_attr = get_dc_attr( hdc )) || !(print = get_dc_print( dc_attr ))) break;
if (print->flags & BANDING)
{
print->flags &= ~BANDING;
SetRectEmpty( rect );
return EndPage( hdc );
}
print->flags |= BANDING;
SetRect( rect, 0, 0, GetDeviceCaps(hdc, HORZRES), GetDeviceCaps(hdc, VERTRES) );
return 1;
}
case ENDDOC:
return EndDoc( hdc );
......
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