< prev index next >

src/java.desktop/macosx/native/libawt_lwawt/awt/PrinterSurfaceData.m

Print this page
rev 54096 : 8259651: [macOS] Replace JNF_COCOA_ENTER/EXIT macros
rev 54098 : 8260616: Removing remaining JNF dependencies in the java.desktop module
8259729: Missed JNFInstanceOf -> IsInstanceOf conversion

@@ -24,12 +24,10 @@
  */
 
 
 #import "PrinterSurfaceData.h"
 #import "jni_util.h"
-#import <JavaNativeFoundation/JavaNativeFoundation.h>
-
 
 //#define DEBUG 1
 #if defined DEBUG
     #define PRINT(msg) {fprintf(stderr, "%s\n", msg);}
 #else

@@ -81,11 +79,11 @@
     qsdo->FinishSurface            = NULL;
 }
 
 JNIEXPORT void JNICALL Java_sun_lwawt_macosx_CPrinterSurfaceData_initOps(JNIEnv *env, jobject jthis, jlong nsRef, jobject jGraphicsState, jobjectArray jGraphicsStateObject, jint width, jint height)
 {
-JNF_COCOA_ENTER(env);
+JNI_COCOA_ENTER(env);
 
 PRINT("Java_sun_lwawt_macosx_CPrinterSurfaceData_initOps")
 
     PrintSDOps *psdo = (PrintSDOps*)SurfaceData_InitOps(env, jthis, sizeof(PrintSDOps));
     if (psdo == NULL) {

@@ -114,11 +112,11 @@
     sdo->GetRasInfo    = PrintSD_GetRasInfo;
     sdo->Release    = PrintSD_ReleaseRasInfo;
     sdo->Setup        = NULL;
     sdo->Dispose    = PrintSD_dispose;
 
-JNF_COCOA_EXIT(env);
+JNI_COCOA_EXIT(env);
 }
 
 static jint PrintSD_Lock(JNIEnv *env, SurfaceDataOps *sdo, SurfaceDataRasInfo *pRasInfo, jint lockflags)
 {
 PRINT(" PrintSD_Lock")
< prev index next >