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