… | |
… | |
2035 | if (menubarGC == None) |
2035 | if (menubarGC == None) |
2036 | { |
2036 | { |
2037 | /* Create the graphics context */ |
2037 | /* Create the graphics context */ |
2038 | XGCValues gcvalue; |
2038 | XGCValues gcvalue; |
2039 | |
2039 | |
2040 | gcvalue.foreground = (XDEPTH <= 2 ? PixColors[Color_fg] |
2040 | gcvalue.foreground = (display->depth <= 2 ? PixColors[Color_fg] |
2041 | : PixColors[Color_Black]); |
2041 | : PixColors[Color_Black]); |
2042 | menubarGC = XCreateGC (display->display, menuBar.win, |
2042 | menubarGC = XCreateGC (display->display, menuBar.win, |
2043 | GCForeground, &gcvalue); |
2043 | GCForeground, &gcvalue); |
2044 | |
2044 | |
2045 | } |
2045 | } |