mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
x11grab: fix mixed declaration and code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
977cb54f94
commit
11d695d120
@ -353,14 +353,16 @@ paint_mouse_pointer(XImage *image, struct x11grab *s)
|
||||
* Anyone who performs further investigation of the xlib API likely risks
|
||||
* permanent brain damage. */
|
||||
uint8_t *pix = image->data;
|
||||
Cursor c;
|
||||
Window w;
|
||||
XSetWindowAttributes attr;
|
||||
|
||||
/* Code doesn't currently support 16-bit or PAL8 */
|
||||
if (image->bits_per_pixel != 24 && image->bits_per_pixel != 32)
|
||||
return;
|
||||
|
||||
Cursor c = XCreateFontCursor(dpy, XC_left_ptr);
|
||||
Window w = DefaultRootWindow(dpy);
|
||||
XSetWindowAttributes attr;
|
||||
c = XCreateFontCursor(dpy, XC_left_ptr);
|
||||
w = DefaultRootWindow(dpy);
|
||||
attr.cursor = c;
|
||||
XChangeWindowAttributes(dpy, w, CWCursor, &attr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user