[lib][display] update display_get_info to return success/failure
Update all the users to check for error.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user