mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +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.dmPelsHeight >= min_height &&
|
||||||
m.dmPelsWidth <= max_width &&
|
m.dmPelsWidth <= max_width &&
|
||||||
m.dmPelsHeight <= max_height &&
|
m.dmPelsHeight <= max_height &&
|
||||||
m.dmPelsWidth < lowest.cx &&
|
m.dmPelsWidth <= lowest.cx &&
|
||||||
m.dmPelsHeight < lowest.cy)
|
m.dmPelsHeight <= lowest.cy)
|
||||||
{
|
{
|
||||||
int res_ratio = (int)((((float)m.dmPelsWidth / m.dmPelsHeight) + 0.005f) * 10);
|
int res_ratio = (int)((((float)m.dmPelsWidth / m.dmPelsHeight) + 0.005f) * 10);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user