(input_keyboard.c) Cleanups

This commit is contained in:
twinaphex 2016-11-03 23:10:42 +01:00
parent 5214c29295
commit 5db3f4528d

View File

@ -42,17 +42,17 @@ struct input_keyboard_line
};
static bool input_driver_keyboard_linefeed_enable = false;
static input_keyboard_line_t *g_keyboard_line;
static input_keyboard_line_t *g_keyboard_line = NULL;
static input_keyboard_press_t g_keyboard_press_cb;
static void *g_keyboard_press_data = NULL;
static void *g_keyboard_press_data;
static bool return_pressed;
static bool return_pressed = false;;
static unsigned osk_last_codepoint = 0;
static unsigned osk_last_codepoint_len = 0;
static input_keyboard_press_t g_keyboard_press_cb;
static void osk_update_last_codepoint(const char *word)
{
const char *letter = word;
@ -224,9 +224,10 @@ bool input_keyboard_line_append(const char *word)
{
unsigned i = 0;
unsigned len = strlen(word);
char *newbuf = (char*)
realloc(g_keyboard_line->buffer, g_keyboard_line->size + len*2);
realloc(g_keyboard_line->buffer,
g_keyboard_line->size + len*2);
if (!newbuf)
return false;