* fixed possible overflow when getting video mode

git-svn-id: trunk@4456 -
This commit is contained in:
florian 2006-08-19 22:45:56 +00:00
parent 22146e2bcf
commit f8bdc64a96

View File

@ -245,7 +245,7 @@ end;
Function SysGetVideoModeData (Index : Word; Var Data : TVideoMode) : boolean;
begin
SysGetVideoModeData:=(Index<=SysVideoModeCount);
SysGetVideoModeData:=(Index<=high(SysVMD));
If SysGetVideoModeData then
Data:=SysVMD[Index];
end;