1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

fix util_get_lowest_resolution

This commit is contained in:
FunkyFr3sh 2023-08-17 13:50:21 +02:00
parent 185c90c67f
commit bcfe2a6c4d

View File

@ -218,8 +218,8 @@ BOOL util_get_lowest_resolution(
m.dmPelsHeight >= min_height &&
m.dmPelsWidth <= max_width &&
m.dmPelsHeight <= max_height &&
m.dmPelsWidth < lowest.cx &&
m.dmPelsHeight < lowest.cy)
m.dmPelsWidth <= lowest.cx &&
m.dmPelsHeight <= lowest.cy)
{
int res_ratio = (int)((((float)m.dmPelsWidth / m.dmPelsHeight) + 0.005f) * 10);