Language:
Русский
English
DetectGraph (procedure) (Graph unit)
Checks the hardware and determines which graphics driver and mode to use.
Declaration
procedure DetectGraph(var GraphDriver, GraphMode: Integer);
Target
Real, Protected
Remarks
DetectGraph returns the detected driver and mode value that can be passed to InitGraph, which will then load the correct driver. If no graphics hardware was detected, the GraphDriver parameter and GraphResult return a value of grNotDetected.
Unless instructed otherwise, InitGraph calls DetectGraph, finds and loads the correct driver, and initializes the graphics system. The only reason to call DetectGraph directly is to override the driver that DetectGraph recommends. When you pass InitGraph a GraphDriver other than Detect, you must also pass a valid GraphMode for the driver requested.