Browse Source

* fix problem in InitScreen

pierre 23 years ago
parent
commit
7d451cf5e1
2 changed files with 12 additions and 6 deletions
  1. 6 3
      fv/app.pas
  2. 6 3
      fvision/app.pas

+ 6 - 3
fv/app.pas

@@ -661,7 +661,6 @@ BEGIN
      -(GetMaxY(TextModeGFV)+1));                      { Full screen area }
      -(GetMaxY(TextModeGFV)+1));                      { Full screen area }
    Inherited Init(R);                                 { Call ancestor }
    Inherited Init(R);                                 { Call ancestor }
    Application := @Self;                              { Set application ptr }
    Application := @Self;                              { Set application ptr }
-   Drivers.InitVideo;
    InitScreen;                                        { Initialize screen }
    InitScreen;                                        { Initialize screen }
    State := sfVisible + sfSelected + sfFocused +
    State := sfVisible + sfSelected + sfFocused +
       sfModal + sfExposed;                            { Deafult states }
       sfModal + sfExposed;                            { Deafult states }
@@ -798,6 +797,7 @@ BEGIN
   { the orginal code can't be used here because of the limited
   { the orginal code can't be used here because of the limited
     video unit capabilities, the mono modus can't be handled
     video unit capabilities, the mono modus can't be handled
   }
   }
+  Drivers.InitVideo;
 {$ifdef USE_VIDEO_API}
 {$ifdef USE_VIDEO_API}
   if (ScreenMode.Col div ScreenMode.Row<2) then
   if (ScreenMode.Col div ScreenMode.Row<2) then
 {$else not USE_VIDEO_API}
 {$else not USE_VIDEO_API}
@@ -825,7 +825,7 @@ END;
 
 
 procedure TProgram.DoneScreen;
 procedure TProgram.DoneScreen;
 begin
 begin
-  DoneVideo;
+  Drivers.DoneVideo;
   Buffer:=nil;
   Buffer:=nil;
 end;
 end;
 
 
@@ -1183,7 +1183,10 @@ END;
 END.
 END.
 {
 {
  $Log$
  $Log$
- Revision 1.14  2001-10-02 16:35:50  pierre
+ Revision 1.15  2002-05-23 07:30:33  pierre
+  * fix problem in InitScreen
+
+ Revision 1.14  2001/10/02 16:35:50  pierre
   * fix several problems, try to get the graph version to compile
   * fix several problems, try to get the graph version to compile
 
 
  Revision 1.13  2001/08/05 02:03:13  peter
  Revision 1.13  2001/08/05 02:03:13  peter

+ 6 - 3
fvision/app.pas

@@ -661,7 +661,6 @@ BEGIN
      -(GetMaxY(TextModeGFV)+1));                      { Full screen area }
      -(GetMaxY(TextModeGFV)+1));                      { Full screen area }
    Inherited Init(R);                                 { Call ancestor }
    Inherited Init(R);                                 { Call ancestor }
    Application := @Self;                              { Set application ptr }
    Application := @Self;                              { Set application ptr }
-   Drivers.InitVideo;
    InitScreen;                                        { Initialize screen }
    InitScreen;                                        { Initialize screen }
    State := sfVisible + sfSelected + sfFocused +
    State := sfVisible + sfSelected + sfFocused +
       sfModal + sfExposed;                            { Deafult states }
       sfModal + sfExposed;                            { Deafult states }
@@ -798,6 +797,7 @@ BEGIN
   { the orginal code can't be used here because of the limited
   { the orginal code can't be used here because of the limited
     video unit capabilities, the mono modus can't be handled
     video unit capabilities, the mono modus can't be handled
   }
   }
+  Drivers.InitVideo;
 {$ifdef USE_VIDEO_API}
 {$ifdef USE_VIDEO_API}
   if (ScreenMode.Col div ScreenMode.Row<2) then
   if (ScreenMode.Col div ScreenMode.Row<2) then
 {$else not USE_VIDEO_API}
 {$else not USE_VIDEO_API}
@@ -825,7 +825,7 @@ END;
 
 
 procedure TProgram.DoneScreen;
 procedure TProgram.DoneScreen;
 begin
 begin
-  DoneVideo;
+  Drivers.DoneVideo;
   Buffer:=nil;
   Buffer:=nil;
 end;
 end;
 
 
@@ -1183,7 +1183,10 @@ END;
 END.
 END.
 {
 {
  $Log$
  $Log$
- Revision 1.14  2001-10-02 16:35:50  pierre
+ Revision 1.15  2002-05-23 07:30:33  pierre
+  * fix problem in InitScreen
+
+ Revision 1.14  2001/10/02 16:35:50  pierre
   * fix several problems, try to get the graph version to compile
   * fix several problems, try to get the graph version to compile
 
 
  Revision 1.13  2001/08/05 02:03:13  peter
  Revision 1.13  2001/08/05 02:03:13  peter