mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 10:47:58 +02:00
Qt: fixed TQtWidgetSet.DCSetPixel. issue #20644
git-svn-id: trunk@33401 -
This commit is contained in:
parent
9cf887e215
commit
290ebf51b6
@ -842,11 +842,11 @@ var
|
||||
begin
|
||||
if IsValidDC(CanvasHandle) then
|
||||
begin
|
||||
//WriteLn('TQtWidgetSet.DCSetPixel X=',X,' Y=',Y, ' AColor=',dbghex(AColor));
|
||||
// WriteLn('TQtWidgetSet.DCSetPixel X=',X,' Y=',Y, ' AColor=',dbghex(AColor),' rgb ? ',dbgHex(ColorToRGB(AColor)));
|
||||
Painter := TQtDeviceContext(CanvasHandle).Widget;
|
||||
Pen := QPainter_pen(Painter);
|
||||
QPen_color(Pen, @ASavedColor);
|
||||
QColor_fromRgb(@Color, ColorToRGB(AColor));
|
||||
QColor_fromRgb(@Color, Red(AColor), Green(AColor), Blue(AColor));
|
||||
QPainter_setPen(Painter, @Color);
|
||||
QPainter_drawPoint(Painter, X,Y);
|
||||
QPainter_setPen(Painter, @ASavedColor);
|
||||
|
Loading…
Reference in New Issue
Block a user