home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Killer
/
Game_Killer.bin
/
113.INITGRPH.INC
< prev
next >
Wrap
Text File
|
1992-07-12
|
761b
|
31 lines
procedure InitGraphics;
var
path : string;
grDriver : Integer;
grMode : Integer;
ErrCode : Integer;
begin
if SVGA then
InitializeSpecialGraphics
else
begin
grDriver := Detect;
InitGraph(grDriver,grMode,'');
ErrCode := GraphResult;
if ErrCode = grFileNotFound then
begin
write('.BGI file not found. Please enter full path to .BGI file: ');
readln( path );
Initgraph( grDriver, grMode, '');
ErrCode := GraphResult;
end;
if ErrCode <> grOk then
WriteLn('Graphics error:',
GraphErrorMsg(ErrCode))
else
SetTextJustify( CenterText, CenterText );
end; {else}
end; {InitGraphics}