added perspective option to corner pin

This commit is contained in:
itsmattkc
2018-11-13 02:39:15 +11:00
parent f9685d5913
commit 6495c5768d
57 changed files with 416 additions and 80 deletions
+1 -2
View File
@@ -29,8 +29,7 @@
#include <QMessageBox>
long refactor_frame_number(long framenumber, double source_frame_rate, double target_frame_rate) {
if (source_frame_rate == target_frame_rate) return framenumber;
return qFloor(((double)framenumber/source_frame_rate)*target_frame_rate);
return qRound(((double)framenumber/source_frame_rate)*target_frame_rate);
}
void draw_selection_rectangle(QPainter& painter, const QRect& rect) {