projects
/
platform
/
upstream
/
kmscon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59f4e84
)
uterm: video: return -EOPNOTSUPP when opengl is not supported
author
David Herrmann
<dh.herrmann@googlemail.com>
Sat, 23 Jun 2012 20:04:06 +0000
(22:04 +0200)
committer
David 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
patch
|
blob
|
history
diff --git
a/src/uterm_video.c
b/src/uterm_video.c
index
3240d7a
..
02f3a79
100644
(file)
--- a/
src/uterm_video.c
+++ b/
src/uterm_video.c
@@
-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)