diff options
author | jkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-09-03 18:10:42 +0000 |
---|---|---|
committer | jkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-09-03 18:10:42 +0000 |
commit | d0e59b4ff9dcd60d7d428512b02dbfe17ca0f500 (patch) | |
tree | 54a3321df34d1c8b233b5da1500ea1e64e118625 /libvo/x11_common.h | |
parent | 3d21da3186f408bccdc4d80ea6f64774640d01f0 (diff) | |
download | mpv-d0e59b4ff9dcd60d7d428512b02dbfe17ca0f500.tar.bz2 mpv-d0e59b4ff9dcd60d7d428512b02dbfe17ca0f500.tar.xz |
Add the code that chooses a good X11 truecolor visual to the vo_x11 config()
function. This is useful for framebuffers on Sun hardware, where we have
multiple truecolor visuals of different depths available, and the root
window typically runs at depth 8, yet there are 24 bit true color visuals
available as well.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7257 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/x11_common.h')
-rw-r--r-- | libvo/x11_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/x11_common.h b/libvo/x11_common.h index e8b2516dfa..c016a04de5 100644 --- a/libvo/x11_common.h +++ b/libvo/x11_common.h @@ -61,3 +61,5 @@ void vo_vm_close(Display*); #endif #endif + +int vo_find_depth_from_visuals(Display *dpy, int screen, Visual **visual_return); |