Preserve native portrait and small pitch fits with active locked cards (by Codex)
This commit is contained in:
1 parent
4903e79476
commit
c39b02f289
6 files changed
+35
-3
No files matched your search
@@ -366,9 +366,12 @@ std::string App::render_lineup() {
|
||||
const auto mini = lineup_mini(point, theme_, size_t(field_count));
|
||||
const std::string label = i < 4 ? "Aufstellung " + std::to_string(i + 1)
|
||||
: "Eigene " + std::to_string(i - 3);
|
||||
// Rasterize thin SVG strokes at the actual output density, avoiding
|
||||
// undersampling of a large texture in this small fixed-size preview.
|
||||
const int mini_pixels=std::clamp(int(std::lround(200.0*scale_)),32,520);
|
||||
const auto art = picture(
|
||||
renderer_.diagram("lineup-mini-" + std::to_string(i) + "-" + theme_,
|
||||
mini, 520),
|
||||
renderer_.diagram("lineup-mini-" + std::to_string(i) + "-" + theme_+"-"+std::to_string(mini_pixels),
|
||||
mini, mini_pixels),
|
||||
200, 120);
|
||||
out += "<div class=\"lineup-formation-cell " +
|
||||
std::string(i >= 4 ? "custom" : "") + "\" style=\"" +
|
||||
|
||||
Reference in new issue
Block a user