Fix HiDPI loading logic.

This commit is contained in:
Augustin Cavalier 2014-12-02 09:42:57 -05:00
parent a5cfe85c8d
commit 726b50e06e
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}