mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JRE-18 CCE in XRMaskFill.MaskFill
Throwing InvalidPipeException for incompatible surfaces
(cherry picked from commit 55dab103c24bf86cf025b9ce02b67e72508d41ba)
(cherry picked from commit 0a4fdad0f2)
This commit is contained in:
committed by
alexey.ushakov@jetbrains.com
parent
f6ed9c447d
commit
f7310bffda
@@ -99,7 +99,12 @@ public class XRMaskFill extends MaskFill {
|
||||
try {
|
||||
SunToolkit.awtLock();
|
||||
|
||||
XRSurfaceData x11sd = (XRSurfaceData) sData;
|
||||
XRSurfaceData x11sd;
|
||||
try {
|
||||
x11sd = (XRSurfaceData) sData;
|
||||
} catch (ClassCastException e) {
|
||||
throw new InvalidPipeException("wrong surface data type: " + sData);
|
||||
}
|
||||
x11sd.validateAsDestination(null, sg2d.getCompClip());
|
||||
|
||||
XRCompositeManager maskBuffer = x11sd.maskBuffer;
|
||||
|
||||
Reference in New Issue
Block a user