mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
Support for old compilers
This commit is contained in:
parent
69a25691c5
commit
1efded85bc
1 changed files with 4 additions and 7 deletions
11
glfw/momentum-scroll.c
vendored
11
glfw/momentum-scroll.c
vendored
|
|
@ -38,13 +38,10 @@ typedef struct MomentumScroller {
|
|||
} physical_event;
|
||||
} MomentumScroller;
|
||||
|
||||
static const MomentumScroller defaults = {
|
||||
.friction = 0.96,
|
||||
.min_velocity = 0.5,
|
||||
.max_velocity = 100,
|
||||
.timer_interval = 10,
|
||||
};
|
||||
static MomentumScroller s = defaults;
|
||||
#define DEFAULTS { .friction = 0.96, .min_velocity = 0.5, .max_velocity = 100, .timer_interval = 10, }
|
||||
static const MomentumScroller defaults = DEFAULTS;
|
||||
static MomentumScroller s = DEFAULTS;
|
||||
#undef DEFAULTS
|
||||
|
||||
GLFWAPI void
|
||||
glfwConfigureMomentumScroller(double friction, double min_velocity, double max_velocity, unsigned timer_interval_ms) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue