Browse Source

* define ColorType as LongWord if FPC_GRAPH_SUPPORTS_TRUECOLOR is defined

git-svn-id: trunk@40836 -
nickysn 6 years ago
parent
commit
80762bc302
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/graph/src/inc/graphh.inc

+ 4 - 0
packages/graph/src/inc/graphh.inc

@@ -434,7 +434,11 @@ type
 
 
 
 
     type
     type
+{$ifdef FPC_GRAPH_SUPPORTS_TRUECOLOR}
+       ColorType = LongWord;
+{$else FPC_GRAPH_SUPPORTS_TRUECOLOR}
        ColorType = Word;
        ColorType = Word;
+{$endif FPC_GRAPH_SUPPORTS_TRUECOLOR}
 
 
        RGBRec = packed record
        RGBRec = packed record
          Red: smallint;
          Red: smallint;