mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 23:42:16 +00:00
Set black background pixel for OpenGL subwindow.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27945 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7187c0c424
commit
fd95b99bca
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-02-21 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/x11/XGGLContext.m (XGXSubWindow -initWithView:visualInfo:):
|
||||
Set black background pixel.
|
||||
|
||||
2009-02-21 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/x11/XGGLContext.m (XGXSubWindow -initWithView:visualInfo:)
|
||||
|
|
|
@ -97,12 +97,13 @@
|
|||
height = NSHeight(rect);
|
||||
|
||||
window_attributes.border_pixel = 255;
|
||||
window_attributes.background_pixel = 0;
|
||||
window_attributes.colormap = XCreateColormap(win_info->display,
|
||||
win_info->ident,
|
||||
xVisualInfo->visual, AllocNone);
|
||||
window_attributes.event_mask = StructureNotifyMask;
|
||||
|
||||
mask = CWBorderPixel | CWColormap | CWEventMask;
|
||||
mask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
|
||||
|
||||
xwindowid = XCreateWindow(win_info->display, win_info->ident,
|
||||
x, y, width, height, 0,
|
||||
|
|
Loading…
Reference in a new issue