mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 10:12:17 +02:00
Support for old compilers
This commit is contained in:
11
glfw/momentum-scroll.c
vendored
11
glfw/momentum-scroll.c
vendored
@@ -38,13 +38,10 @@ typedef struct MomentumScroller {
|
|||||||
} physical_event;
|
} physical_event;
|
||||||
} MomentumScroller;
|
} MomentumScroller;
|
||||||
|
|
||||||
static const MomentumScroller defaults = {
|
#define DEFAULTS { .friction = 0.96, .min_velocity = 0.5, .max_velocity = 100, .timer_interval = 10, }
|
||||||
.friction = 0.96,
|
static const MomentumScroller defaults = DEFAULTS;
|
||||||
.min_velocity = 0.5,
|
static MomentumScroller s = DEFAULTS;
|
||||||
.max_velocity = 100,
|
#undef DEFAULTS
|
||||||
.timer_interval = 10,
|
|
||||||
};
|
|
||||||
static MomentumScroller s = defaults;
|
|
||||||
|
|
||||||
GLFWAPI void
|
GLFWAPI void
|
||||||
glfwConfigureMomentumScroller(double friction, double min_velocity, double max_velocity, unsigned timer_interval_ms) {
|
glfwConfigureMomentumScroller(double friction, double min_velocity, double max_velocity, unsigned timer_interval_ms) {
|
||||||
|
|||||||
Reference in New Issue
Block a user