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:
parent
185c90c67f
commit
bcfe2a6c4d
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user