summary refs log tree commit diff
path: root/src/ColorImageProvider.cpp
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2021-11-03 21:43:11 -0400
committerJoseph Donofry <joedonofry@gmail.com>2021-11-03 21:43:11 -0400
commit743a83c8e6f0b64b21e8042a9eb04ce35c713008 (patch)
treef980bdb8c45e607547f87e48f42144227166aa6c /src/ColorImageProvider.cpp
parentMerge remote-tracking branch 'nheko-im/master' into video_player_enhancements (diff)
parentUpdate translations (diff)
downloadnheko-743a83c8e6f0b64b21e8042a9eb04ce35c713008.tar.xz
Update video_player_enhancements with changes from master
Diffstat (limited to 'src/ColorImageProvider.cpp')
-rw-r--r--src/ColorImageProvider.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/ColorImageProvider.cpp b/src/ColorImageProvider.cpp

index 41fd5d8f..9c371c8c 100644 --- a/src/ColorImageProvider.cpp +++ b/src/ColorImageProvider.cpp
@@ -9,23 +9,23 @@ QPixmap ColorImageProvider::requestPixmap(const QString &id, QSize *size, const QSize &) { - auto args = id.split('?'); + auto args = id.split('?'); - QPixmap source(args[0]); + QPixmap source(args[0]); - if (size) - *size = QSize(source.width(), source.height()); + if (size) + *size = QSize(source.width(), source.height()); - if (args.size() < 2) - return source; + if (args.size() < 2) + return source; - QColor color(args[1]); + QColor color(args[1]); - QPixmap colorized = source; - QPainter painter(&colorized); - painter.setCompositionMode(QPainter::CompositionMode_SourceIn); - painter.fillRect(colorized.rect(), color); - painter.end(); + QPixmap colorized = source; + QPainter painter(&colorized); + painter.setCompositionMode(QPainter::CompositionMode_SourceIn); + painter.fillRect(colorized.rect(), color); + painter.end(); - return colorized; + return colorized; }