Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
11d695d1
Commit
11d695d1
authored
Oct 29, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11grab: fix mixed declaration and code
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
977cb54f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
x11grab.c
libavdevice/x11grab.c
+5
-3
No files found.
libavdevice/x11grab.c
View file @
11d695d1
...
@@ -353,14 +353,16 @@ paint_mouse_pointer(XImage *image, struct x11grab *s)
...
@@ -353,14 +353,16 @@ paint_mouse_pointer(XImage *image, struct x11grab *s)
* Anyone who performs further investigation of the xlib API likely risks
* Anyone who performs further investigation of the xlib API likely risks
* permanent brain damage. */
* permanent brain damage. */
uint8_t
*
pix
=
image
->
data
;
uint8_t
*
pix
=
image
->
data
;
Cursor
c
;
Window
w
;
XSetWindowAttributes
attr
;
/* Code doesn't currently support 16-bit or PAL8 */
/* Code doesn't currently support 16-bit or PAL8 */
if
(
image
->
bits_per_pixel
!=
24
&&
image
->
bits_per_pixel
!=
32
)
if
(
image
->
bits_per_pixel
!=
24
&&
image
->
bits_per_pixel
!=
32
)
return
;
return
;
Cursor
c
=
XCreateFontCursor
(
dpy
,
XC_left_ptr
);
c
=
XCreateFontCursor
(
dpy
,
XC_left_ptr
);
Window
w
=
DefaultRootWindow
(
dpy
);
w
=
DefaultRootWindow
(
dpy
);
XSetWindowAttributes
attr
;
attr
.
cursor
=
c
;
attr
.
cursor
=
c
;
XChangeWindowAttributes
(
dpy
,
w
,
CWCursor
,
&
attr
);
XChangeWindowAttributes
(
dpy
,
w
,
CWCursor
,
&
attr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment