mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 20:09:20 +02:00
* only enable the save/restore state hack on cards, older than VGA
git-svn-id: trunk@15969 -
This commit is contained in:
parent
a56c5afc0e
commit
a89dd9f880
@ -3523,6 +3523,7 @@ const CrtAddress: word = 0;
|
|||||||
until we create Save/RestoreStateHGC, we use Save/RestoreStateVGA
|
until we create Save/RestoreStateHGC, we use Save/RestoreStateVGA
|
||||||
with the inWindows flag enabled (so we only save the mode number
|
with the inWindows flag enabled (so we only save the mode number
|
||||||
and nothing else) }
|
and nothing else) }
|
||||||
|
if not VGADetected then
|
||||||
inWindows := true;
|
inWindows := true;
|
||||||
SaveVideoState := @SaveStateVGA;
|
SaveVideoState := @SaveStateVGA;
|
||||||
RestoreVideoState := @RestoreStateVGA;
|
RestoreVideoState := @RestoreStateVGA;
|
||||||
@ -3556,6 +3557,7 @@ const CrtAddress: word = 0;
|
|||||||
until we create Save/RestoreStateCGA, we use Save/RestoreStateVGA
|
until we create Save/RestoreStateCGA, we use Save/RestoreStateVGA
|
||||||
with the inWindows flag enabled (so we only save the mode number
|
with the inWindows flag enabled (so we only save the mode number
|
||||||
and nothing else) }
|
and nothing else) }
|
||||||
|
if not VGADetected then
|
||||||
inWindows := true;
|
inWindows := true;
|
||||||
SaveVideoState := @SaveStateVGA;
|
SaveVideoState := @SaveStateVGA;
|
||||||
RestoreVideoState := @RestoreStateVGA;
|
RestoreVideoState := @RestoreStateVGA;
|
||||||
@ -3688,6 +3690,7 @@ const CrtAddress: word = 0;
|
|||||||
until we create Save/RestoreStateEGA, we use Save/RestoreStateVGA
|
until we create Save/RestoreStateEGA, we use Save/RestoreStateVGA
|
||||||
with the inWindows flag enabled (so we only save the mode number
|
with the inWindows flag enabled (so we only save the mode number
|
||||||
and nothing else) }
|
and nothing else) }
|
||||||
|
if not VGADetected then
|
||||||
inWindows := true;
|
inWindows := true;
|
||||||
SaveVideoState := @SaveStateVGA;
|
SaveVideoState := @SaveStateVGA;
|
||||||
RestoreVideoState := @RestoreStateVGA;
|
RestoreVideoState := @RestoreStateVGA;
|
||||||
|
Loading…
Reference in New Issue
Block a user