[PATCH v2] ddraw: Optimize ddraw7_GetDisplayMode() a bit.