mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 06:49:12 +02:00
IPro, TIpHtmlPanel: Support color printers. Issue #27420, patch from Michl.
git-svn-id: trunk@47652 -
This commit is contained in:
parent
83ce9e7c08
commit
54f7e2e148
@ -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;
|
||||
|
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user