IPro, TIpHtmlPanel: Support color printers. Issue #27420, patch from Michl.

git-svn-id: trunk@47652 -
This commit is contained in:
juha 2015-02-08 18:05:37 +00:00
parent 83ce9e7c08
commit 54f7e2e148
2 changed files with 2 additions and 1 deletions

View File

@ -13000,7 +13000,7 @@ begin
// printer should have 2 colors, somebody else needs to clarify.
BWPrinter := false;
{$ELSE}
BWPrinter := GetDeviceCaps(Printer.Canvas.Handle, PLANES) = 1;
BWPrinter := GetDeviceCaps(Printer.Canvas.Handle, NUMCOLORS) = 2;
{$ENDIF}
{$IFDEF IP_LAZARUS}
LogPixX := Printer.XDPI;

View File

@ -2124,6 +2124,7 @@ const
VERTRES = 10; { Vertical height in pixels }
BITSPIXEL = 12; { Number of bits per pixel }
PLANES = 14; { Number of planes }
NUMCOLORS = 24; { Number of colors }
LOGPIXELSX = 88; { Logical pixelsinch in X }
LOGPIXELSY = 90; { Logical pixelsinch in Y }
SIZEPALETTE = 104; { Number of entries in physical palette }