Browse Source

* GetModeName fixed to work with the 'old' mode numbers also

git-svn-id: trunk@15970 -
nickysn 15 years ago
parent
commit
df295ca8d6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      packages/graph/src/inc/modes.inc

+ 4 - 1
packages/graph/src/inc/modes.inc

@@ -316,7 +316,10 @@ end;
       mode:=nil;
       GetModeName:='';
       { only search in the current driver modes ... }
-      mode:=SearchMode(IntCurrentNewDriver,ModeNumber);
+      if (ModeNumber >= lowNewMode) and (ModeNumber <= highNewMode) then
+          mode:=SearchMode(IntCurrentNewDriver,ModeNumber)
+      else
+          mode:=SearchMode(IntCurrentDriver,ModeNumber);
       if assigned(mode) then
           GetModeName:=Mode^.ModeName
       else