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 = {
|
XSetWindowAttributes attrs = {
|
||||||
background_pixmap: None,
|
background_pixmap: None,
|
||||||
background_pixel: XBlackPixel(window.display, window.screen_id),
|
border_pixel: 0,
|
||||||
colormap: XCreateColormap(window.display, window.root_window, visual_info.visual, AllocNone),
|
event_mask: StructureNotifyMask,
|
||||||
};
|
};
|
||||||
|
|
||||||
value_mask |= CWColormap;
|
value_mask |= CWColormap;
|
||||||
@ -684,9 +684,9 @@ CreateWindow(PlatformWindow* window, string name, u32 width, u32 height, XVisual
|
|||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
0,
|
0,
|
||||||
(visual_info ? visual_info.depth : cast(i32)copy),
|
visual_info.depth,
|
||||||
InputOutput,
|
InputOutput,
|
||||||
(visual_info ? visual_info.visual : cast(Visual*)©),
|
visual_info.visual,
|
||||||
value_mask,
|
value_mask,
|
||||||
&attrs
|
&attrs
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user