mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-14 03:30:53 +00:00
Avoid crash potential by doing less during resource acquisition
- (This also would have fixed ctrlPressed background bug -- previous 02147f3d commit)
This commit is contained in:
parent
02147f3d9a
commit
1147ce7cd7
@ -436,7 +436,11 @@ static void _setup_touchkbd_hud(GLModel *parent) {
|
||||
hudKeyboard->tpl = calloc(size, 1);
|
||||
hudKeyboard->pixels = calloc(KBD_FB_WIDTH * KBD_FB_HEIGHT, 1);
|
||||
|
||||
_switch_keyboard(parent, kbdTemplateUCase[0]);
|
||||
memcpy(hudKeyboard->tpl, kbdTemplateUCase[0], sizeof(kbdTemplateUCase/* assuming all the same size */));
|
||||
|
||||
// setup normal color pixels
|
||||
hudKeyboard->colorScheme = RED_ON_BLACK;
|
||||
glhud_setupDefault(parent);
|
||||
}
|
||||
|
||||
static void *_create_touchkbd_hud(void) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user