fixed percentage

This commit is contained in:
lostjared
2017-02-18 17:10:00 -08:00
parent a235a187a9
commit 3109033ebe
3 changed files with 140443 additions and 2 deletions

View File

@@ -895,6 +895,7 @@ void AC_MainWindow::updateFrame(QImage img) {
void AC_MainWindow::stopRecording() { void AC_MainWindow::stopRecording() {
controls_Stop(); controls_Stop();
frame_index = video_frames;
} }
void AC_MainWindow::frameInc() { void AC_MainWindow::frameInc() {
@@ -906,7 +907,9 @@ void AC_MainWindow::frameInc() {
if(programMode == MODE_VIDEO) { if(programMode == MODE_VIDEO) {
float index = frame_index; float index = frame_index;
float max_frames = video_frames; float max_frames = video_frames;
frame_stream << " - " << (index/max_frames)*100 << "%";
if(frame_index <= video_frames)
frame_stream << " - " << (unsigned int)((index/max_frames)*100) << "%";
} }
statusBar()->showMessage(frame_string); statusBar()->showMessage(frame_string);
} }

140438
src/qrc_qresource.cpp Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
#ifndef _QT_HEADERS__ #ifndef _QT_HEADERS__
#define _QT_HEADERS__ #define _QT_HEADERS__
#define ac_version "v0.4-Beta" #define ac_version "v0.4.2-Beta"
#include<QApplication> #include<QApplication>
#include<QMainWindow> #include<QMainWindow>