mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 23:59:10 +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;
|
mode:=nil;
|
||||||
GetModeName:='';
|
GetModeName:='';
|
||||||
{ only search in the current driver modes ... }
|
{ 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
|
if assigned(mode) then
|
||||||
GetModeName:=Mode^.ModeName
|
GetModeName:=Mode^.ModeName
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user