Browse Source

* fixed initialization of bankshift var ('64 shr banshift' instead of shl)

Jonas Maebe 26 years ago
parent
commit
a1e0551898
1 changed files with 7 additions and 3 deletions
  1. 7 3
      rtl/inc/graph/vesa.inc

+ 7 - 3
rtl/inc/graph/vesa.inc

@@ -1,4 +1,5 @@
 {
 {
+
     $Id$
     $Id$
     This file is part of the Free Pascal run time library.
     This file is part of the Free Pascal run time library.
     Copyright (c) 1993,99 by Carl Eric Codere
     Copyright (c) 1993,99 by Carl Eric Codere
@@ -1026,13 +1027,13 @@ end;
        end
        end
      else
      else
        begin
        begin
-         SetVESAmode := TRUE;
+         SetVESAmode := FALSE;
          _GraphResult := grError;
          _GraphResult := grError;
          exit;
          exit;
        end;
        end;
 
 
      BankShift := 0;
      BankShift := 0;
-     while (64 shl BankShift) <> ModeInfo.WinGranularity do
+     while (64 shr BankShift) <> ModeInfo.WinGranularity do
         Inc(BankShift);
         Inc(BankShift);
      CurrentWriteBank := -1;
      CurrentWriteBank := -1;
      CurrentReadBank := -1;
      CurrentReadBank := -1;
@@ -1410,7 +1411,10 @@ end;
 
 
 {
 {
 $Log$
 $Log$
-Revision 1.6  1999-07-14 13:17:29  jonas
+Revision 1.7  1999-07-14 15:21:49  jonas
+  * fixed initialization of bankshift var ('64 shr banshift' instead of shl)
+
+Revision 1.6  1999/07/14 13:17:29  jonas
   * bugfix in getmodeinfo (SizeOf(TModeInfo) -> SizeOf(TVESAModeInfo))
   * bugfix in getmodeinfo (SizeOf(TModeInfo) -> SizeOf(TVESAModeInfo))
   * as the result of the above bugfix, the graph unit doesn't crash
   * as the result of the above bugfix, the graph unit doesn't crash
     anymore under FPC if compiler with -dsupportVESA, but it doesn't
     anymore under FPC if compiler with -dsupportVESA, but it doesn't