< prev index next >
src/java.desktop/unix/native/common/java2d/x11/X11PMBlitLoops.c
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -58,11 +58,11 @@
}
if (Region_GetInfo(env, clip, &clipInfo)) {
return;
}
- xgc = (GC)gc;
+ xgc = (GC) jlong_to_ptr(gc);
if (xgc == NULL) {
return;
}
#ifdef MITSHM
@@ -149,11 +149,11 @@
dstXsdo = (X11SDOps *)jlong_to_ptr(dstData);
if (dstXsdo == NULL) {
return;
}
- dstGC = (GC)xgc;
+ dstGC = (GC) jlong_to_ptr(xgc);
if (dstGC == NULL) {
return;
}
#ifdef MITSHM
< prev index next >