Route default canvas resolution through platform services

This commit is contained in:
2026-06-04 19:20:06 +02:00
parent b2334e65c9
commit 0489c4229e
12 changed files with 57 additions and 10 deletions

View File

@@ -40,7 +40,8 @@ void App::cmd_convert(std::string pano_path, std::string out_path)
glBlendEquation(add_blend_equation());
Canvas* command_canvas = new Canvas;
command_canvas->create(CANVAS_RES, CANVAS_RES);
const int canvas_resolution = default_canvas_resolution();
command_canvas->create(canvas_resolution, canvas_resolution);
command_canvas->project_open_thread(pano_path);
command_canvas->export_equirectangular_thread(out_path);
}