uterm: video: return -EOPNOTSUPP when opengl is not supported
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 23 Jun 2012 20:04:06 +0000 (22:04 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 23 Jun 2012 20:04:06 +0000 (22:04 +0200)
When the backend does not implement display_use() then we return an error
instead of success to notify the application that it should use blitting
instead.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/uterm_video.c

index 3240d7a..02f3a79 100644 (file)
@@ -123,7 +123,7 @@ int uterm_screen_use(struct uterm_screen *screen)
        if (!screen || !display_is_online(screen->disp))
                return -EINVAL;
 
-       return VIDEO_CALL(screen->disp->ops->use, 0, screen->disp);
+       return VIDEO_CALL(screen->disp->ops->use, -EOPNOTSUPP, screen->disp);
 }
 
 int uterm_screen_swap(struct uterm_screen *screen)