void Java_java_awt_MHPBackgroundLayer_setLayerBackgroundMode(JNIEnv* env, jobject obj, long nativeLayer, int mode) {
void Java_java_awt_MHPBackgroundLayer_setLayerBackgroundMode(JNIEnv* env, jobject obj, jlong nativeLayer, int mode) {
void Java_java_awt_MHPBackgroundLayer_setLayerBackgroundMode(JNIEnv* env, jobject obj, long nativeLayer, int mode) {   IDirectFBDisplayLayer *layer=(IDirectFBDisplayLayer *)nativeLayer;   try {      switch ((MHPBackgroundLayerMode)mode) {         case MODE_DONTCARE:            layer->SetBackgroundMode(DLBM_DONTCARE);            break;         case MODE_IMAGESTRETCH:            layer->SetBackgroundMode(DLBM_IMAGE);            break;         case MODE_IMAGETILE:            layer->SetBackgroundMode(DLBM_TILE);            break;         default:         case MODE_COLOR:            layer->SetBackgroundMode(DLBM_COLOR);            break;      }   } catch (DFBException *e) {      printf("DirectFB: Error %s, %s\n", e->GetAction(), e->GetResult());      delete e;   }}