diff options
| author | nickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2010-09-11 19:28:28 +0000 |
|---|---|---|
| committer | nickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2010-09-11 19:28:28 +0000 |
| commit | 5907f238c4d23d37037cb2e57212604725366481 (patch) | |
| tree | eaa1fe39963e5cc56773f3ceb4c6ad944403083c /packages/graph/src | |
| parent | 668832828340dcadca5fe19d7efe1dbf1c9eeb7f (diff) | |
| download | fpc-5907f238c4d23d37037cb2e57212604725366481.tar.gz | |
* only enable the save/restore state hack on cards, older than VGA
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@15969 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/graph/src')
| -rw-r--r-- | packages/graph/src/go32v2/graph.pp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/graph/src/go32v2/graph.pp b/packages/graph/src/go32v2/graph.pp index 053b4b6da6..d2a6b46a6e 100644 --- a/packages/graph/src/go32v2/graph.pp +++ b/packages/graph/src/go32v2/graph.pp @@ -3523,7 +3523,8 @@ const CrtAddress: word = 0; until we create Save/RestoreStateHGC, we use Save/RestoreStateVGA with the inWindows flag enabled (so we only save the mode number and nothing else) } - inWindows := true; + if not VGADetected then + inWindows := true; SaveVideoState := @SaveStateVGA; RestoreVideoState := @RestoreStateVGA; @@ -3556,7 +3557,8 @@ const CrtAddress: word = 0; until we create Save/RestoreStateCGA, we use Save/RestoreStateVGA with the inWindows flag enabled (so we only save the mode number and nothing else) } - inWindows := true; + if not VGADetected then + inWindows := true; SaveVideoState := @SaveStateVGA; RestoreVideoState := @RestoreStateVGA; @@ -3688,7 +3690,8 @@ const CrtAddress: word = 0; until we create Save/RestoreStateEGA, we use Save/RestoreStateVGA with the inWindows flag enabled (so we only save the mode number and nothing else) } - inWindows := true; + if not VGADetected then + inWindows := true; SaveVideoState := @SaveStateVGA; RestoreVideoState := @RestoreStateVGA; |
