Fixed Qt TAS editor clock scaling. Use CLOCKS_PER_SEC macro as it seems to vary based on OS.

This commit is contained in:
mjbudd77 2021-11-15 21:47:15 -05:00
parent 03230aed07
commit 61aa68f910
2 changed files with 4 additions and 2 deletions

View File

@ -1,12 +1,13 @@
// Specification file for Branches class
#pragma once
#include <stdint.h>
#include <time.h>
#include <vector>
#include <QFont>
#include <QWidget>
#define BRANCHES_ANIMATION_TICK 40 // animate at 25FPS
#define BRANCHES_ANIMATION_TICK (40 * CLOCKS_PER_SEC / 1000) // animate at 25FPS
#define BRANCHES_TRANSITION_MAX 12
#define CURSOR_MIN_DISTANCE 1.0
#define CURSOR_MAX_DISTANCE 256.0

View File

@ -24,7 +24,8 @@
#define LVS_EX_DOUBLEBUFFER 0x00010000
#endif
#define AUTOSAVE_PERIOD_SCALE 60000 // = 1 minute in milliseconds
//#define AUTOSAVE_PERIOD_SCALE 60000 // = 1 minute in milliseconds
#define AUTOSAVE_PERIOD_SCALE (60 * CLOCKS_PER_SEC) // = 1 minute in milliseconds
#define MARKERS_SAVED 1
#define BOOKMARKS_SAVED 2