mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-03 06:30:33 +00:00
Comments, and avoid NULL deref on app resume
This commit is contained in:
parent
4e23795cfd
commit
e7c0d8fe48
@ -75,6 +75,9 @@ static void _alertToModel(char *message, unsigned int messageCols, unsigned int
|
||||
mdlDestroyModel(&messageModel);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// GLNode functions
|
||||
|
||||
static void alert_init(void) {
|
||||
// no-op
|
||||
}
|
||||
@ -99,6 +102,10 @@ static void alert_render(void) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!messageModel) {
|
||||
return;
|
||||
}
|
||||
|
||||
struct timespec now = { 0 };
|
||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||
|
||||
@ -138,6 +145,7 @@ static bool alert_onTouchEvent(interface_touch_event_t action, int pointer_count
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Various animations
|
||||
|
||||
static void _animation_showMessage(char *messageTemplate, unsigned int cols, unsigned int rows) {
|
||||
// frame the message with interface border characters
|
||||
|
Loading…
Reference in New Issue
Block a user