diff options
Diffstat (limited to 'src/corelib/gdi')
-rw-r--r-- | src/corelib/gdi/fpg_gdi.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/gdi/fpg_gdi.pas b/src/corelib/gdi/fpg_gdi.pas index 5d20873d..e72dc6bc 100644 --- a/src/corelib/gdi/fpg_gdi.pas +++ b/src/corelib/gdi/fpg_gdi.pas @@ -2194,9 +2194,9 @@ function TfpgGDICanvas.GetPixel(X, Y: integer): TfpgColor; var c: longword; begin - c := Windows.GetPixel(Fgc, X, Y); if c = CLR_INVALID then Writeln('fpGFX/GDI: TfpgGDICanvas.GetPixel returned an invalid color'); + c := Windows.GetPixel(FWinGC, X, Y); Result := WinColorTofpgColor(c); end; |