Skip to content

Commit

Permalink
Run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Minter committed Jul 26, 2020
1 parent b044697 commit 215a9ee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/system/xlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@ static void xlibSystemFrameCreate(RSFrame *frame, RSSystem *system) {
if (extra->sharedFrame == NULL) {
// Create a new image by getting it from X11
XImage *image = XGetImage(extra->display, extra->rootWindow, extra->config.offsetX,
extra->config.offsetY, (unsigned)extra->config.width,
(unsigned)extra->config.height, AllPlanes, ZPixmap);
extra->config.offsetY, (unsigned)extra->config.width,
(unsigned)extra->config.height, AllPlanes, ZPixmap);
if (image == NULL) {
// Something went wrong but the error was ignored (see above), create a blank
// frame
rsFrameCreate(frame, (size_t)extra->config.width, (size_t)extra->config.height, 4);
rsFrameCreate(frame, (size_t)extra->config.width, (size_t)extra->config.height,
4);
} else {
xlibSystemFrameImage(frame, image);
frame->extra = image;
Expand Down

0 comments on commit 215a9ee

Please sign in to comment.