Skip to content

Improve lobby sleeve icon downscaling#10952

Open
MostCromulent wants to merge 1 commit into
Card-Forge:masterfrom
MostCromulent:lobby-sleeve-quality
Open

Improve lobby sleeve icon downscaling#10952
MostCromulent wants to merge 1 commit into
Card-Forge:masterfrom
MostCromulent:lobby-sleeve-quality

Conversation

@MostCromulent

Copy link
Copy Markdown
Contributor

Minor polish for #10929

The lobby panel drew the full 360x500 sleeve source straight into a 58x80 label, a ~6x single-pass reduction that looked aliased and rough. Instead, scale via area-averaging resize() at 2x the label size. This looks much smoother at small icon size and avoids aliasing.

The scaled image is cached so the downscale runs once rather than on every repaint.


🤖 Generated with Claude Code

The lobby panel drew the full 360x500 sleeve source straight into a
58x80 label, a ~6x single-pass reduction that looked aliased and rough.
Route the three icon-set sites through a helper that pre-scales once via
the cached area-averaging resize() at 2x the label size, leaving HiDPI
headroom. The scaled image is cached per sleeve, so the heavy downscale
runs once rather than on every repaint.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@tool4ever tool4ever left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems wrong since FLabel already has some own logic for it:
maybe the current iconScaleFactor would be a better approach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants