In this function, an infinite loop will occur if dim > 0x80000000: https://github.com/gonetz/GLideN64/blob/55c436c706224eae6cd1395b88e083105b7d7834/src/GLideNUI-wtl/config-video.cpp#L42