mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #5980 (Reflection in Cover Browser not reflecting cropped bottom edge)
This commit is contained in:
parent
3f14bedb00
commit
3544fe468c
@ -579,7 +579,7 @@ void PictureFlowPrivate::resetSlides()
|
|||||||
static QImage prepareSurface(QImage img, int w, int h)
|
static QImage prepareSurface(QImage img, int w, int h)
|
||||||
{
|
{
|
||||||
Qt::TransformationMode mode = Qt::SmoothTransformation;
|
Qt::TransformationMode mode = Qt::SmoothTransformation;
|
||||||
img = img.scaled(w, h, Qt::KeepAspectRatioByExpanding, mode);
|
img = img.scaled(w, h, Qt::IgnoreAspectRatio, mode);
|
||||||
|
|
||||||
// slightly larger, to accommodate for the reflection
|
// slightly larger, to accommodate for the reflection
|
||||||
int hs = int(h * REFLECTION_FACTOR);
|
int hs = int(h * REFLECTION_FACTOR);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user