@@ -405,7 +405,7 @@ bool Graphics::SetMode(int width, int height, bool fullscreen, bool borderless,
for (unsigned i = 0; i < resolutions.Size(); ++i)
{
- unsigned error = Abs(resolutions[i].x_ - width) * Abs(resolutions[i].y_ - height);
+ unsigned error = Abs(resolutions[i].x_ - width) + Abs(resolutions[i].y_ - height);
if (error < bestError)
best = i;
@@ -330,7 +330,7 @@ bool Graphics::SetMode(int width, int height, bool fullscreen, bool borderless,