[lib][display] update display_get_info to return success/failure

Update all the users to check for error.
This commit is contained in:
Travis Geiselbrecht
2015-10-08 15:54:40 -07:00
parent 9f72a0470e
commit c7ce0b9361
9 changed files with 39 additions and 21 deletions

View File

@@ -77,7 +77,8 @@ void text_draw(int x, int y, const char *string)
void text_update(void)
{
struct display_info info;
display_get_info(&info);
if (display_get_info(&info) < 0)
return;
/* get the display's surface */
gfx_surface *surface = gfx_create_surface_from_display(&info);