Comments, and avoid NULL deref on app resume

This commit is contained in:
Aaron Culliney 2015-04-22 23:40:48 -07:00
parent 4e23795cfd
commit e7c0d8fe48

View File

@ -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