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

git-svn-id: trunk@15970 -
This commit is contained in:
nickysn 2010-09-11 20:42:33 +00:00
parent a89dd9f880
commit df295ca8d6

View File

@ -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