From a03922b69aeb1762a65fb4b2ab86fec6f061e536 Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Sat, 19 Dec 2020 21:38:32 +0000 Subject: [PATCH] rgbgraphics: Fix usage with qt5 git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7935 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/rgbgraphics/rgbroutines.pas | 3 +++ components/rgbgraphics/rgbtypes.pas | 3 +++ 2 files changed, 6 insertions(+) diff --git a/components/rgbgraphics/rgbroutines.pas b/components/rgbgraphics/rgbroutines.pas index 42a810603..4f4cd3f40 100644 --- a/components/rgbgraphics/rgbroutines.pas +++ b/components/rgbgraphics/rgbroutines.pas @@ -42,6 +42,9 @@ uses {$IFDEF LCLqt} RGBQtRoutines, {$ENDIF} +{$IFDEF LCLqt5} + RGBQt5Routines, +{$ENDIF} {$IFDEF LCLgtk} {$DEFINE StretchRGB32} RGBGTKRoutines, diff --git a/components/rgbgraphics/rgbtypes.pas b/components/rgbgraphics/rgbtypes.pas index 082991367..532dcbcf2 100644 --- a/components/rgbgraphics/rgbtypes.pas +++ b/components/rgbgraphics/rgbtypes.pas @@ -36,6 +36,9 @@ unit RGBTypes; {$ifdef LCLqt} {$define RGB} {$endif} +{$ifdef LCLqt5} + {$define RGB} +{$endif} interface