2
0
pierre 26 жил өмнө
parent
commit
8c64c4dba9
1 өөрчлөгдсөн 15 нэмэгдсэн , 0 устгасан
  1. 15 0
      tests/tbs0051.pp

+ 15 - 0
tests/tbs0051.pp

@@ -1,7 +1,22 @@
 program TestPutP;
 program TestPutP;
 
 
+{$ifdef go32v2}
+  {$define has_colors_equal}
+{$endif go32v2}
+
 uses  crt,graph;
 uses  crt,graph;
 
 
+{$ifndef has_colors_equal}
+  function ColorsEqual(c1, c2 : longint) : boolean;
+    begin
+       ColorsEqual:=((GetMaxColor=$FF) and ((c1 and $FF)=(c2 and $FF))) or
+         ((GetMaxColor=$7FFF) and ((c1 and $F8F8F8)=(c2 and $F8F8F8))) or
+         ((GetMaxColor=$FFFF) and ((c1 and $F8FCF8)=(c2 and $F8FCF8))) or
+         ((GetMaxColor>$10000) and ((c1 and $FFFFFF)=(c2 and $FFFFFF)));
+    end;
+
+{$endif not has_colors_equal}
+
 var   gd,gm,gError,yi,i : integer;
 var   gd,gm,gError,yi,i : integer;
       col: longint;
       col: longint;
       error : word;
       error : word;