File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ local function update_camera(player)
6464 local display_resolution = player .display_resolution
6565 local display_scale = player .display_scale
6666
67- local left_margin = (selected .position .x - player .render_position .x ) * zoom * 32
68- local top_margin = (selected .position .y - player .render_position .y ) * zoom * 32
69- local preview_size_world = (factory .layout .outside_size * 32 - 32 )
67+ local left_margin = (selected .position .x - player .render_position .x ) * zoom * 32 * player . display_density_scale
68+ local top_margin = (selected .position .y - player .render_position .y ) * zoom * 32 * player . display_density_scale
69+ local preview_size_world = (factory .layout .outside_size * 32 - 32 ) * player . display_density_scale
7070 local preview_size_screen = preview_size_world * zoom
7171
7272 camera_frame .location = {
You can’t perform that action at this time.
0 commit comments