From 006d35914a5bb80c08677ccce96d91c5aad2ae1d Mon Sep 17 00:00:00 2001 From: 4h7l Date: Fri, 26 Feb 2021 02:44:22 +0500 Subject: [PATCH] fix(qimage): fix setPixelColor (#810) --- src/lib/QtGui/QImage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/QtGui/QImage.ts b/src/lib/QtGui/QImage.ts index cbdd9da5f..615cb70a8 100644 --- a/src/lib/QtGui/QImage.ts +++ b/src/lib/QtGui/QImage.ts @@ -388,10 +388,10 @@ export class QImage extends Component { setPixelColor(x: number, y: number, color: QColor): void; setPixelColor(positionOrX: QPoint | number, colorOrY: QColor | number, color?: QColor): void { if (positionOrX instanceof QPoint) { - this.native.setPixel(positionOrX.native, colorOrY); + this.native.setPixelColor(positionOrX.native, colorOrY); return; } - this.native.setPixel(positionOrX, colorOrY, color?.native as NativeElement); + this.native.setPixelColor(positionOrX, colorOrY, color?.native as NativeElement); } /** Sets the image text to the given text and associate it with the given key */