1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-23 18:06:20 +04:00

Move down to a reasonable capacity.

This commit is contained in:
Stephen Marz 2020-05-28 19:09:41 -04:00
parent f2079c2cda
commit 70461adfbd
2 changed files with 2 additions and 2 deletions

View File

@ -236,7 +236,7 @@ pub fn setup_input_device(ptr: *mut u32) -> bool {
repopulate_event(&mut dev, i);
}
INPUT_DEVICES[idx] = Some(dev);
ABS_EVENTS = Some(VecDeque::with_capacity(100000));
ABS_EVENTS = Some(VecDeque::with_capacity(1000));
// ABS_OBSERVERS = Some(VecDeque::new());
KEY_EVENTS = Some(VecDeque::with_capacity(1000));
// KEY_OBSERVERS = Some(VecDeque::new());

View File

@ -3,7 +3,7 @@
#include <input-event-codes.h>
#define MAX_EVENTS 100000
#define MAX_EVENTS 100
#define cos(x) table_cos(x)
// #define cos(x) taylor_cos(x)
#define min(x, y) ((x < y) ? x : y)