Avoid tiny cards on high screen resolutions
ClosedPublic

Authored by volkov on Mar 26 2019, 12:09 PM.

Details

Summary

Calculated card width can be too large. Clamp it to the
maximum value instead of falling back to the default
width of 10 pixels.

Diff Detail

Repository
R410 KPatience
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
volkov created this revision.Mar 26 2019, 12:09 PM
Restricted Application added a reviewer: KDE Games. · View Herald TranscriptMar 26 2019, 12:09 PM
Restricted Application added a subscriber: kde-games-devel. · View Herald Transcript
volkov requested review of this revision.Mar 26 2019, 12:09 PM

Can't really say anything about the maximum number, but cards are indeed not tiny anymore on my ~170 DPI display (probably rather low HiDPI)

+1

This revision was not accepted when it landed; it landed in state Needs Review.Apr 24 2019, 3:57 PM
This revision was automatically updated to reflect the committed changes.