Browse Source

* don't call InitVideo in DetectVideo procedure

pierre 23 years ago
parent
commit
b012e3336e
2 changed files with 12 additions and 4 deletions
  1. 6 2
      fv/drivers.pas
  2. 6 2
      fvision/drivers.pas

+ 6 - 2
fv/drivers.pas

@@ -775,7 +775,8 @@ procedure DetectVideo;
 VAR
 VAR
   CurrMode : TVideoMode;
   CurrMode : TVideoMode;
 begin
 begin
-  Video.InitVideo;
+  { Video.InitVideo; Incompatible with BP
+    and forces a screen clear which is often a bad thing PM }
   GetVideoMode(CurrMode);
   GetVideoMode(CurrMode);
   ScreenMode:=CurrMode;
   ScreenMode:=CurrMode;
 end;
 end;
@@ -1673,7 +1674,10 @@ BEGIN
 END.
 END.
 {
 {
  $Log$
  $Log$
- Revision 1.32  2002-09-09 08:04:05  pierre
+ Revision 1.33  2002-09-13 09:21:15  pierre
+  * don't call InitVideo in DetectVideo procedure
+
+ Revision 1.32  2002/09/09 08:04:05  pierre
   * remove all warnings about far
   * remove all warnings about far
 
 
  Revision 1.31  2002/09/07 15:06:36  peter
  Revision 1.31  2002/09/07 15:06:36  peter

+ 6 - 2
fvision/drivers.pas

@@ -775,7 +775,8 @@ procedure DetectVideo;
 VAR
 VAR
   CurrMode : TVideoMode;
   CurrMode : TVideoMode;
 begin
 begin
-  Video.InitVideo;
+  { Video.InitVideo; Incompatible with BP
+    and forces a screen clear which is often a bad thing PM }
   GetVideoMode(CurrMode);
   GetVideoMode(CurrMode);
   ScreenMode:=CurrMode;
   ScreenMode:=CurrMode;
 end;
 end;
@@ -1673,7 +1674,10 @@ BEGIN
 END.
 END.
 {
 {
  $Log$
  $Log$
- Revision 1.32  2002-09-09 08:04:05  pierre
+ Revision 1.33  2002-09-13 09:21:15  pierre
+  * don't call InitVideo in DetectVideo procedure
+
+ Revision 1.32  2002/09/09 08:04:05  pierre
   * remove all warnings about far
   * remove all warnings about far
 
 
  Revision 1.31  2002/09/07 15:06:36  peter
  Revision 1.31  2002/09/07 15:06:36  peter