Language:
Русский
English
{Getmxmd.PAS}
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
{Sample code for the GetMaxMode function.}
uses Graph;
var
Driver, Mode: Integer;
I: Integer;
begin
Driver := Detect;{ Put in graphics mode }
InitGraph(Driver, Mode, '');
if GraphResult < 0 then
Halt(1);
for I := 0 to GetMaxMode do{ Display all mode names }
OutTextXY(10, 10 * Succ(I), GetModeName(I));
Readln;
CloseGraph;
end.