only use _slope postfix at js lib interface

This commit is contained in:
2026-02-25 10:42:05 -08:00
parent 48a7b06b71
commit d03f84c893
3 changed files with 6 additions and 6 deletions

View File

@@ -77,7 +77,7 @@ impl<'a> PlayerWorker<'a>{
self.graphics_thread.render(&self.surface,pos,angles);
},
Instruction::Resize(physical_size)=>{
let fov_y=self.playback_head.state().get_fov_slope_y();
let fov_y=self.playback_head.state().get_fov_y();
let fov_x=fov_y*physical_size.width as f64/physical_size.height as f64;
self.graphics_thread.resize(&self.surface,glam::uvec2(physical_size.width,physical_size.height),glam::vec2(fov_x as f32,fov_y as f32));
},