notaz.gp2x.de
/
sdl_omap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use offscreen blitting when SDL_DOUBLEBUF is not set
[sdl_omap.git]
/
src
/
video
/
omapdss
/
linux
/
fbdev.c
diff --git
a/src/video/omapdss/linux/fbdev.c
b/src/video/omapdss/linux/fbdev.c
index
ec3d5c7
..
7e8a962
100644
(file)
--- a/
src/video/omapdss/linux/fbdev.c
+++ b/
src/video/omapdss/linux/fbdev.c
@@
-175,6
+175,17
@@
int vout_fbdev_get_fd(struct vout_fbdev *fbdev)
return fbdev->fd;
}
return fbdev->fd;
}
+void *vout_fbdev_get_active_mem(struct vout_fbdev *fbdev)
+{
+ int i;
+
+ i = fbdev->buffer_write - 1;
+ if (i < 0)
+ i = fbdev->buffer_count - 1;
+
+ return (char *)fbdev->mem + fbdev->fb_size * i;
+}
+
struct vout_fbdev *vout_fbdev_init(const char *fbdev_name, int *w, int *h, int bpp, int buffer_cnt)
{
struct vout_fbdev *fbdev;
struct vout_fbdev *vout_fbdev_init(const char *fbdev_name, int *w, int *h, int bpp, int buffer_cnt)
{
struct vout_fbdev *fbdev;