Commit b2e33b90 by Corentin Wallez

X11Window::initialize remove a small code redundancy

BUG= Change-Id: Id5f98332129b3cc854254187b494bf6a97921dbd Reviewed-on: https://chromium-review.googlesource.com/289272Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent 23a2ae0c
......@@ -176,9 +176,9 @@ bool X11Window::initialize(const std::string &name, size_t width, size_t height)
int screen = DefaultScreen(mDisplay);
Window root = RootWindow(mDisplay, screen);
Colormap colormap = XCreateColormap(mDisplay, root, DefaultVisual(mDisplay, screen), AllocNone);
int depth = DefaultDepth(mDisplay, screen);
Visual *visual = DefaultVisual(mDisplay, screen);
int depth = DefaultDepth(mDisplay, screen);
Colormap colormap = XCreateColormap(mDisplay, root, visual, AllocNone);
XSetWindowAttributes attributes;
unsigned long attributeMask = CWBorderPixel | CWColormap | CWEventMask;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment