2
maxsmallint = high(smallint);
18
grInvalidFontNum = -14;
19
grInvalidVersion = -18;
21
function GraphErrorMsg(ErrorCode: smallint): string;
25
grOk,grFileNotFound,grInvalidDriver: exit;
26
grNoInitGraph: GraphErrorMsg:='Graphics driver not installed';
27
grNotDetected: GraphErrorMsg:='Graphics hardware not detected';
28
grNoLoadMem,grNoScanMem,grNoFloodMem: GraphErrorMsg := 'Not enough memory for graphics';
29
grNoFontMem: GraphErrorMsg := 'Not enough memory to load font';
30
grFontNotFound: GraphErrorMsg:= 'Font file not found';
31
grInvalidMode: GraphErrorMsg := 'Invalid graphics mode';
32
grError: GraphErrorMsg:='Graphics error';
33
grIoError: GraphErrorMsg:='Graphics I/O error';
34
grInvalidFont,grInvalidFontNum: GraphErrorMsg := 'Invalid font';
35
grInvalidVersion: GraphErrorMsg:='Invalid driver version';
40
if GraphErrorMsg(grNoInitGraph) <> 'Graphics driver not installed' then