Код:
Код: Выделить всё
VidRam:=GetVidMemLocal/1000000;
if (VidRam<63) or (VidRam>1100) then vr:=VidRam
else if VidRam<100 then vr:=64
else if VidRam<200 then vr:=128
else if VidRam<300 then vr:=256
else if VidRam<400 then vr:=384
else if VidRam<600 then vr:=512
else if VidRam<800 then vr:=792
else if VidRam>800 then vr:=1024
else if VidRam<1500 then vr:=1280
else if VidRam<2100 then vr:=2048
else if VidRam<2600 then vr:=2550
else if VidRam<3100 then vr:=3072;И нужно ли ли что то ещё дописывать?