0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

linux-xshm: Improve source struct.

This adds documentation to the source struct and moves one bool to the
end to avoid a hole due to alignment.
This commit is contained in:
fryshorts 2014-11-18 20:15:25 +01:00
parent b3312a7657
commit 1a51d5fab7

View File

@ -28,18 +28,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define XSHM_DATA(voidptr) struct xshm_data *data = voidptr;
struct xshm_data {
/** Xlib display object */
Display *dpy;
/** Xlib screen object */
Screen *screen;
/** root coordinates for the capture */
int_fast32_t x_org, y_org;
/** size for the capture */
int_fast32_t width, height;
/** shared memory management object */
xshm_t *xshm;
/** the texture used to display the capture */
gs_texture_t *texture;
bool show_cursor;
/** cursor object for displaying the server */
xcursor_t *cursor;
/** user setting - if cursor should be displayed */
bool show_cursor;
/** set if xinerama is available and active on the screen */
bool use_xinerama;
};