Fix HiDPI loading logic.
This commit is contained in:
parent
a5cfe85c8d
commit
726b50e06e
|
@ -84,7 +84,8 @@ QString Resources::GetImageFilename(QString name, QString dir)
|
|||
{
|
||||
if (qApp->devicePixelRatio() >= 2)
|
||||
{
|
||||
QString fileName = name.prepend(dir).append(SL("@2x.png"));
|
||||
QString fileName = name;
|
||||
fileName.prepend(dir).append(SL("@2x.png"));
|
||||
if (QFile::exists(fileName))
|
||||
return fileName;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue