diff options
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); } |