Fix the continuous scroll mode in hdpi screen modes
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled
Build / Publish YACReader10 Pre-release Builds (push) Has been cancelled

This commit is contained in:
luisangelsm
2026-03-07 22:38:33 +01:00
parent fbbccfc608
commit 6317c3a4d0
3 changed files with 16 additions and 10 deletions

View File

@ -40,6 +40,8 @@ private:
qint64 sourceCacheKey = 0;
QSize sourceSize;
QSize targetSize;
QSize targetPixelSize;
qreal targetDevicePixelRatio = 1.0;
QImage scaledImage;
};
@ -86,7 +88,7 @@ private:
}
};
const QImage *scaledImageForPaint(int pageIndex, const QImage *source, const QSize &targetSize, int effectiveWidth);
const QImage *scaledImageForPaint(int pageIndex, const QImage *source, const QSize &targetSize, int effectiveWidth, qreal devicePixelRatio);
Render *render = nullptr;
ContinuousViewModel *continuousViewModel = nullptr;