diff options
author | Stéphane Lenclud <github@lenclud.com> | 2019-05-19 16:31:08 +0200 |
---|---|---|
committer | Stéphane Lenclud <github@lenclud.com> | 2019-05-19 16:31:38 +0200 |
commit | 1579a97c480578dcd14691cd3e40f56fd508204e (patch) | |
tree | 4eac0cff9eda3e07e13377f647b0cd915cae2480 /tracker-easy/preview.cpp | |
parent | 48b80fb28b9e6e44267c9d1edb8a9968ff81fea5 (diff) |
Easy Tracker: Fix #945 trivial warnings.
Also fixing broken build.
Diffstat (limited to 'tracker-easy/preview.cpp')
-rw-r--r-- | tracker-easy/preview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-easy/preview.cpp b/tracker-easy/preview.cpp index 198f838b..1dad7d84 100644 --- a/tracker-easy/preview.cpp +++ b/tracker-easy/preview.cpp @@ -72,7 +72,7 @@ namespace EasyTracker QImage Preview::get_bitmap() { - int stride = iFrameWidget.step.p[0]; + size_t stride = iFrameWidget.step.p[0]; if (stride < 64 || stride < iFrameWidget.cols * 4) { @@ -96,7 +96,7 @@ namespace EasyTracker return QImage((const unsigned char*)iFrameWidget.data, iFrameWidget.cols, iFrameWidget.rows, - stride, + (int)stride, QImage::Format_ARGB32); } |