The atomic mouse coordinates now use atomic functions and mouse movement is no longer scaled by DPI if mouse coordinates are not raw.

This commit is contained in:
OBattler
2023-08-12 00:17:01 +02:00
parent 6127c4572d
commit 8f9f10f4d3
5 changed files with 68 additions and 33 deletions

View File

@@ -115,8 +115,8 @@ RendererCommon::onResize(int width, int height)
}
}
monitors[r_monitor_index].mon_res_x = (int) ((double) destination.width() * plat_get_dpi());
monitors[r_monitor_index].mon_res_y = (int) ((double) destination.height() * plat_get_dpi());
monitors[r_monitor_index].mon_res_x = (double) destination.width();
monitors[r_monitor_index].mon_res_y = (double) destination.height();
}
bool