From 01b97b0cabe5c8e141c8e54ee6da9d370048c451 Mon Sep 17 00:00:00 2001 From: lltcggie Date: Sun, 6 Mar 2016 23:15:53 +0900 Subject: [PATCH] =?UTF-8?q?GUI=E3=81=A7=E3=83=97=E3=83=AD=E3=82=B0?= =?UTF-8?q?=E3=83=AC=E3=82=B9=E3=83=90=E3=83=BC=E3=81=8C=E6=A9=9F=E8=83=BD?= =?UTF-8?q?=E3=81=97=E3=81=A6=E3=81=84=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F?= =?UTF-8?q?=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- waifu2x-caffe-gui/Source.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/waifu2x-caffe-gui/Source.cpp b/waifu2x-caffe-gui/Source.cpp index 11160c5..3f5f92c 100644 --- a/waifu2x-caffe-gui/Source.cpp +++ b/waifu2x-caffe-gui/Source.cpp @@ -575,6 +575,11 @@ private: { const auto InitEndTime = std::chrono::system_clock::now(); + const int maxFile = file_paths.size(); + int num = 0; + + ProgessFunc(maxFile, 0); + for (const auto &p : file_paths) { ret = w.waifu2x(p.first, p.second, [this]() @@ -582,6 +587,9 @@ private: return cancelFlag; }); + num++; + ProgessFunc(maxFile, num); + if (ret != Waifu2x::eWaifu2xError_OK) { SendMessage(dh, WM_ON_WAIFU2X_ERROR, (WPARAM)&ret, (LPARAM)&p);