Explorar o código

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

git-svn-id: trunk@15970 -
nickysn %!s(int64=15) %!d(string=hai) anos
pai
achega
df295ca8d6
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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