Explorar o código

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

git-svn-id: trunk@40865 -
nickysn %!s(int64=6) %!d(string=hai) anos
pai
achega
ec2f4c2c0c
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      packages/graph/src/inc/modes.inc

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

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