Explorar o código

* fixed "data structure too large" error when compiling the video unit on a 16-bit cpu

git-svn-id: trunk@31855 -
nickysn %!s(int64=10) %!d(string=hai) anos
pai
achega
88e1e963a3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/rtl-console/src/inc/videoh.inc

+ 1 - 1
packages/rtl-console/src/inc/videoh.inc

@@ -22,7 +22,7 @@ type
   TVideoCell = Word;
   PVideoCell = ^TVideoCell;
 
-  TVideoBuf = array[0..32759] of TVideoCell;
+  TVideoBuf = array[0..{$ifdef CPU16}16382{$else}32759{$endif}] of TVideoCell;
   PVideoBuf = ^TVideoBuf;
 
   TVideoDriver = Record