Fixed Qt TAS editor clock scaling. Use CLOCKS_PER_SEC macro as it seems to vary based on OS.
This commit is contained in:
parent
03230aed07
commit
61aa68f910
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue