changes to x11 init
This commit is contained in:
parent
0d7cf716ad
commit
9c541f8cf5
@ -669,8 +669,8 @@ CreateWindow(PlatformWindow* window, string name, u32 width, u32 height, XVisual
|
||||
{
|
||||
XSetWindowAttributes attrs = {
|
||||
background_pixmap: None,
|
||||
background_pixel: XBlackPixel(window.display, window.screen_id),
|
||||
colormap: XCreateColormap(window.display, window.root_window, visual_info.visual, AllocNone),
|
||||
border_pixel: 0,
|
||||
event_mask: StructureNotifyMask,
|
||||
};
|
||||
|
||||
value_mask |= CWColormap;
|
||||
@ -684,9 +684,9 @@ CreateWindow(PlatformWindow* window, string name, u32 width, u32 height, XVisual
|
||||
width,
|
||||
height,
|
||||
0,
|
||||
(visual_info ? visual_info.depth : cast(i32)copy),
|
||||
visual_info.depth,
|
||||
InputOutput,
|
||||
(visual_info ? visual_info.visual : cast(Visual*)©),
|
||||
visual_info.visual,
|
||||
value_mask,
|
||||
&attrs
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user