1int lwidth; 2int lheight; 3void 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