*** 220,230 **** if (xsdo == NULL) { return; } ! xgc = (GC)gc; if (xgc == NULL) { return; } screen = xsdo->configData->awt_visInfo.screen; --- 220,230 ---- if (xsdo == NULL) { return; } ! xgc = (GC) jlong_to_ptr(gc); if (xgc == NULL) { return; } screen = xsdo->configData->awt_visInfo.screen;