mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-16 10:53:31 +00:00
8214109: XToolkit is not correctly displayed color on 16-bit high color setting
Reviewed-by: serb, prr
This commit is contained in:
parent
2234278bed
commit
d98bc090d7
@ -449,14 +449,7 @@ class XWindow extends XBaseWindow implements X11ComponentPeer {
|
||||
if (!doEraseBackground()) {
|
||||
return;
|
||||
}
|
||||
// 6304250: XAWT: Items in choice show a blue border on OpenGL + Solaris10 when background color is set
|
||||
// Note: When OGL is enabled, surfaceData.pixelFor() will not
|
||||
// return a pixel value appropriate for passing to
|
||||
// XSetWindowBackground(). Therefore, we will use the ColorModel
|
||||
// for this component in order to calculate a pixel value from
|
||||
// the given RGB value.
|
||||
ColorModel cm = getColorModel();
|
||||
int pixel = PixelConverter.instance.rgbToPixel(c.getRGB(), cm);
|
||||
int pixel = surfaceData.pixelFor(c.getRGB());
|
||||
XlibWrapper.XSetWindowBackground(XToolkit.getDisplay(), getContentWindow(), pixel);
|
||||
XlibWrapper.XClearWindow(XToolkit.getDisplay(), getContentWindow());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user