mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 08:41:44 +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.
|
// printer should have 2 colors, somebody else needs to clarify.
|
||||||
BWPrinter := false;
|
BWPrinter := false;
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
BWPrinter := GetDeviceCaps(Printer.Canvas.Handle, PLANES) = 1;
|
BWPrinter := GetDeviceCaps(Printer.Canvas.Handle, NUMCOLORS) = 2;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$IFDEF IP_LAZARUS}
|
{$IFDEF IP_LAZARUS}
|
||||||
LogPixX := Printer.XDPI;
|
LogPixX := Printer.XDPI;
|
||||||
|
@ -2124,6 +2124,7 @@ const
|
|||||||
VERTRES = 10; { Vertical height in pixels }
|
VERTRES = 10; { Vertical height in pixels }
|
||||||
BITSPIXEL = 12; { Number of bits per pixel }
|
BITSPIXEL = 12; { Number of bits per pixel }
|
||||||
PLANES = 14; { Number of planes }
|
PLANES = 14; { Number of planes }
|
||||||
|
NUMCOLORS = 24; { Number of colors }
|
||||||
LOGPIXELSX = 88; { Logical pixelsinch in X }
|
LOGPIXELSX = 88; { Logical pixelsinch in X }
|
||||||
LOGPIXELSY = 90; { Logical pixelsinch in Y }
|
LOGPIXELSY = 90; { Logical pixelsinch in Y }
|
||||||
SIZEPALETTE = 104; { Number of entries in physical palette }
|
SIZEPALETTE = 104; { Number of entries in physical palette }
|
||||||
|
Loading…
Reference in New Issue
Block a user