mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-01 10:30:46 +01:00
* disable the VESA features by default if running under MS WinNT and above
git-svn-id: trunk@27798 -
This commit is contained in:
parent
7e1c370c17
commit
9f56c6ec11
19
ide/vesa.pas
19
ide/vesa.pas
@ -743,4 +743,23 @@ BEGIN
|
|||||||
SetVESAVideoDriver:=true;
|
SetVESAVideoDriver:=true;
|
||||||
END;
|
END;
|
||||||
|
|
||||||
|
function ChkWinNT: boolean;
|
||||||
|
var
|
||||||
|
R: Registers;
|
||||||
|
begin
|
||||||
|
ChkWinNT := false;
|
||||||
|
R.AX := $3306;
|
||||||
|
RealIntr ($21, R);
|
||||||
|
if (R.AL = 255) or (R.BX <> 50 * 256 + 5) then
|
||||||
|
Exit;
|
||||||
|
R.AX := $3000;
|
||||||
|
RealIntr ($21, R);
|
||||||
|
if (R.AX = 5) and (R.BH = 255) then
|
||||||
|
ChkWinNT := true;
|
||||||
|
end;
|
||||||
|
|
||||||
|
begin
|
||||||
|
(* Let's disable VESA functions by default if running under MS Windows NT+ *)
|
||||||
|
if ChkWinNT then
|
||||||
|
DisableVESA := true;
|
||||||
END.
|
END.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user