mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
parent
970ed56fa5
commit
8d52c17f29
2 changed files with 5 additions and 2 deletions
|
@ -48,8 +48,8 @@ Item {
|
||||||
smooth: true
|
smooth: true
|
||||||
mipmap: true
|
mipmap: true
|
||||||
|
|
||||||
sourceSize.width: Math.min(Screen.desktopAvailableWidth, originalWidth || undefined) * Screen.devicePixelRatio
|
sourceSize.width: Math.min(Screen.desktopAvailableWidth, originalWidth < 1 ? Screen.desktopAvailableWidth : originalWidth) * Screen.devicePixelRatio
|
||||||
sourceSize.height: Math.min(Screen.desktopAvailableHeight, originalWidth*proportionalHeight || undefined) * Screen.devicePixelRatio
|
sourceSize.height: Math.min(Screen.desktopAvailableHeight, (originalWidth < 1 ? Screen.desktopAvailableHeight : originalWidth*proportionalHeight)) * Screen.devicePixelRatio
|
||||||
}
|
}
|
||||||
|
|
||||||
MxcAnimatedImage {
|
MxcAnimatedImage {
|
||||||
|
|
|
@ -30,6 +30,9 @@ MxcImageProvider::requestImageResponse(const QString &id, const QSize &requested
|
||||||
double radius = 0;
|
double radius = 0;
|
||||||
auto size = requestedSize;
|
auto size = requestedSize;
|
||||||
|
|
||||||
|
if (requestedSize.width() == 0 && requestedSize.height() == 0)
|
||||||
|
size = QSize();
|
||||||
|
|
||||||
auto queryStart = id.lastIndexOf('?');
|
auto queryStart = id.lastIndexOf('?');
|
||||||
if (queryStart != -1) {
|
if (queryStart != -1) {
|
||||||
id_ = id.left(queryStart);
|
id_ = id.left(queryStart);
|
||||||
|
|
Loading…
Reference in a new issue