1 int lwidth;
2 int lheight;
ConvertFor3dDriver(int requirePO2,int maxAspect)3 void ConvertFor3dDriver (int requirePO2, int maxAspect)
4 {
5   int oldw = lwidth, oldh = lheight;
6 
7   lheight = FindNearestPowerOf2 (lheight);
8   while (lwidth/lheight > maxAspect) lheight += lheight;
9 }
10