From f7b305bc0aa033bf9c662c5627bc8fb6811a50ad Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sun, 24 Jun 2012 10:31:34 +0200 Subject: [PATCH] video: return -EOPNOTSUPP in video_use without OpenGL If OpenGL is not supported, we should _not_ return 0. Otherwise, there is not convenient way to detect this scenario. Signed-off-by: David Herrmann --- src/uterm_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uterm_internal.h b/src/uterm_internal.h index 04939b7..8fa5338 100644 --- a/src/uterm_internal.h +++ b/src/uterm_internal.h @@ -297,7 +297,7 @@ static inline bool video_need_hotplug(const struct uterm_video *video) static inline int video_do_use(struct uterm_video *video) { - return VIDEO_CALL(video->ops->use, 0, video); + return VIDEO_CALL(video->ops->use, -EOPNOTSUPP, video); } static inline bool input_bit_is_set(const unsigned long *array, int bit)