Cleaning up some OSK code to avoid leaking so much memory.
Note: Planning to make keyboards load once, rather than every time a switch happens. Some other memory leak fixes.
This commit is contained in:
parent
25e582c438
commit
19f5adaf4d
3 changed files with 63 additions and 49 deletions
|
|
@ -123,6 +123,7 @@ typedef struct osk_keyboard
|
|||
osk_kmdf kmdf;
|
||||
osk_layout *layout; /* The layout struct */
|
||||
char *layout_name[256]; /* The layout name */
|
||||
TTF_Font * osk_fonty; /* Font */
|
||||
int disable_change; /* If true, stay with the first layout found */
|
||||
wchar_t * key[256]; /* The text of the key */
|
||||
int keycode; /* The unicode code corresponding to the key */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue