Route default canvas resolution through platform services
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user