mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 20:49:49 +02:00
* GetModeName fixed to work with the 'old' mode numbers also
git-svn-id: trunk@15970 -
This commit is contained in:
parent
a89dd9f880
commit
df295ca8d6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user