mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-17 12:20:00 +01:00
fixed percentage
This commit is contained in:
@@ -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
140438
src/qrc_qresource.cpp
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user