ensure cam zoom is wld scale dependent

isolation_bkp/dynres
Dominik Madarász 2021-05-08 15:35:53 +02:00
parent c3fb674449
commit b4bc76719f
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ uint8_t platform_is_running() {
}
void platform_input() {
float mouse_z = GetMouseWheelMove();
float mouse_z = (GetMouseWheelMove()*20.0f)/GFX_WORLD_SCALE;
if (mouse_z != 0.0f) {
render_camera.zoom = zpl_clamp(render_camera.zoom+mouse_z*0.04f, 0.2f/GFX_WORLD_SCALE, 320.0f/GFX_WORLD_SCALE);