Browse Source

* 24-bit color support in modes.inc:res2mode

git-svn-id: trunk@40865 -
nickysn 6 years ago
parent
commit
ec2f4c2c0c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/graph/src/inc/modes.inc

+ 3 - 1
packages/graph/src/inc/modes.inc

@@ -31,9 +31,11 @@
      4096: driver := D12bit;
      4096: driver := D12bit;
      32768: driver := D15bit;
      32768: driver := D15bit;
      65536: driver := D16bit;
      65536: driver := D16bit;
-{    not yet supported
+{$ifdef FPC_GRAPH_SUPPORTS_TRUECOLOR}
      65536*256: driver := D24bit;
      65536*256: driver := D24bit;
+{    not yet supported
      65536*65536: driver := D32bit;}
      65536*65536: driver := D32bit;}
+{$endif FPC_GRAPH_SUPPORTS_TRUECOLOR}
      else
      else
        begin
        begin
          driver := maxsmallint;
          driver := maxsmallint;