ContextAlbum: Make size hint respect device pixel ratio

This commit is contained in:
Jonas Kvinge 2023-03-28 18:21:19 +02:00
parent e4697c8ff1
commit 92adc18b8f
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ void ContextAlbum::Init(ContextView *context_view, AlbumCoverChoiceController *a
QSize ContextAlbum::sizeHint() const {
return QSize(pixmap_current_.width(), pixmap_current_.height());
return QSize(pixmap_current_.width() / devicePixelRatioF(), pixmap_current_.height() / devicePixelRatioF());
}