< prev index next >
src/java.desktop/share/native/libawt/java2d/loops/ProcessPath.c
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2005, 2013, 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
--- 1,7 ----
/*
! * Copyright (c) 2005, 2018, 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
*** 26,35 ****
--- 26,36 ----
#include <math.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
+ #include "jni.h"
#include "j2d_md.h"
#include "java_awt_geom_PathIterator.h"
#include "ProcessPath.h"
*** 2175,2185 ****
}
static void stubEndSubPath(ProcessHandler* hnd) {
}
! jboolean doFillPath(DrawHandler* dhnd,
jint transX, jint transY,
jfloat* coords, jint maxCoords,
jbyte* types, jint numTypes,
PHStroke stroke, jint fillRule)
{
--- 2176,2187 ----
}
static void stubEndSubPath(ProcessHandler* hnd) {
}
! JNIEXPORT jboolean JNICALL
! doFillPath(DrawHandler* dhnd,
jint transX, jint transY,
jfloat* coords, jint maxCoords,
jbyte* types, jint numTypes,
PHStroke stroke, jint fillRule)
{
*** 2215,2225 ****
FillPolygon(&hnd, fillRule);
FD_FREE_POINTS(&fillData);
return JNI_TRUE;
}
! jboolean doDrawPath(DrawHandler* dhnd,
void (*pProcessEndSubPath)(ProcessHandler*),
jint transX, jint transY,
jfloat* coords, jint maxCoords,
jbyte* types, jint numTypes, PHStroke stroke)
{
--- 2217,2228 ----
FillPolygon(&hnd, fillRule);
FD_FREE_POINTS(&fillData);
return JNI_TRUE;
}
! JNIEXPORT jboolean JNICALL
! doDrawPath(DrawHandler* dhnd,
void (*pProcessEndSubPath)(ProcessHandler*),
jint transX, jint transY,
jfloat* coords, jint maxCoords,
jbyte* types, jint numTypes, PHStroke stroke)
{
< prev index next >