Skip to content

Commit 5d5dbb8

Browse files
committed
Go slightly larger during initial scaling in PlaylistEntryImage
There are some cases where the scaled image would still be one pixel less than desired in height or width, so go slightly larger to ensure we can crop down to the desired size for display.
1 parent fa69445 commit 5d5dbb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/playlist/PlaylistEntryImage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ void PlaylistEntryImage::PrepImage(void) {
292292
// Resize to slightly larger since trying to get exact can
293293
// leave us off by one pixel. Going slightly larger will let
294294
// us crop to exact size later.
295-
image.resize(Geometry(m_width + 2, m_height + 2, 0, 0));
295+
image.resize(Geometry(m_width + 4, m_height + 4, 0, 0));
296296

297297
cols = image.columns();
298298
rows = image.rows();

0 commit comments

Comments
 (0)