Skip to content

Commit

Permalink
Merge bc64c50 into d73cfac
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR authored Dec 24, 2017
2 parents d73cfac + bc64c50 commit 8999f57
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Telegram/SourceFiles/codegen/style/generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1186,9 +1186,11 @@ QByteArray iconMaskValueSize(int width, int height) {
QByteArray iconMaskValuePng(QString filepath) {
QByteArray result;

auto pathAndModifiers = filepath.split('-');
filepath = pathAndModifiers[0];
auto modifiers = pathAndModifiers.mid(1);
QFileInfo fileInfo(filepath);
auto directory = fileInfo.dir();
auto nameAndModifiers = fileInfo.fileName().split('-');
filepath = directory.filePath(nameAndModifiers[0]);
auto modifiers = nameAndModifiers.mid(1);

QImage png100x(filepath + ".png");
QImage png200x(filepath + "@2x.png");
Expand Down

0 comments on commit 8999f57

Please sign in to comment.