src/video/x11/SDL_x11window.c
changeset 7750 48acb5c00c4b
parent 7741 199d77d7bf1c
child 7808 627f256b0e56
equal deleted inserted replaced
7749:6073ad385c9b 7750:48acb5c00c4b
   393         visual = displaydata->visual;
   393         visual = displaydata->visual;
   394         depth = displaydata->depth;
   394         depth = displaydata->depth;
   395     }
   395     }
   396 
   396 
   397     xattr.override_redirect = False;
   397     xattr.override_redirect = False;
   398     xattr.background_pixel = 0;
   398     xattr.background_pixmap = None;
   399     xattr.border_pixel = 0;
   399     xattr.border_pixel = 0;
   400 
   400 
   401     if (visual->class == DirectColor) {
   401     if (visual->class == DirectColor) {
   402         XColor *colorcells;
   402         XColor *colorcells;
   403         int i;
   403         int i;
   478     }
   478     }
   479 
   479 
   480     w = XCreateWindow(display, RootWindow(display, screen),
   480     w = XCreateWindow(display, RootWindow(display, screen),
   481                       window->x, window->y, window->w, window->h,
   481                       window->x, window->y, window->w, window->h,
   482                       0, depth, InputOutput, visual,
   482                       0, depth, InputOutput, visual,
   483                       (CWOverrideRedirect | CWBackPixel | CWBorderPixel |
   483                       (CWOverrideRedirect | CWBackPixmap | CWBorderPixel |
   484                        CWColormap), &xattr);
   484                        CWColormap), &xattr);
   485     if (!w) {
   485     if (!w) {
   486         return SDL_SetError("Couldn't create window");
   486         return SDL_SetError("Couldn't create window");
   487     }
   487     }
   488 
   488