Language:
Русский
English
{Getdrvnm.PAS}
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
{Sample code for the GetDriverName function.}
uses Graph;
var Driver, Mode: Integer;
begin
Driver := Detect; { Put in graphics mode }
InitGraph(Driver, Mode, '');
if GraphResult < 0 then
Halt(1);
OutText('Using driver ' + GetDriverName);
Readln;
CloseGraph;
end.