jdk/src/solaris/classes/sun/awt/X11/XWindow.java
changeset 23248 3418855fb2c5
parent 21278 ef8a3a2a72f2
child 23276 add6f5c93bc6
equal deleted inserted replaced
23247:dd6c58eeb05c 23248:3418855fb2c5
   454             // for this component in order to calculate a pixel value from
   454             // for this component in order to calculate a pixel value from
   455             // the given RGB value.
   455             // the given RGB value.
   456             ColorModel cm = getColorModel();
   456             ColorModel cm = getColorModel();
   457             int pixel = PixelConverter.instance.rgbToPixel(c.getRGB(), cm);
   457             int pixel = PixelConverter.instance.rgbToPixel(c.getRGB(), cm);
   458             XlibWrapper.XSetWindowBackground(XToolkit.getDisplay(), getContentWindow(), pixel);
   458             XlibWrapper.XSetWindowBackground(XToolkit.getDisplay(), getContentWindow(), pixel);
       
   459             XlibWrapper.XClearWindow(XToolkit.getDisplay(), getContentWindow());
   459         }
   460         }
   460         finally {
   461         finally {
   461             XToolkit.awtUnlock();
   462             XToolkit.awtUnlock();
   462         }
   463         }
   463     }
   464     }