equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
229 GETMAX(src->y1, dst->y1 - dy); |
229 GETMAX(src->y1, dst->y1 - dy); |
230 GETMIN(src->x2, dst->x2 - dx); |
230 GETMIN(src->x2, dst->x2 - dx); |
231 GETMIN(src->y2, dst->y2 - dy); |
231 GETMIN(src->y2, dst->y2 - dy); |
232 } |
232 } |
233 |
233 |
234 SurfaceDataOps *SurfaceData_InitOps(JNIEnv *env, jobject sData, int opsSize) |
234 JNIEXPORT SurfaceDataOps * |
|
235 SurfaceData_InitOps(JNIEnv *env, jobject sData, int opsSize) |
235 { |
236 { |
236 SurfaceDataOps *ops = malloc(opsSize); |
237 SurfaceDataOps *ops = malloc(opsSize); |
237 SurfaceData_SetOps(env, sData, ops); |
238 SurfaceData_SetOps(env, sData, ops); |
238 if (ops != NULL) { |
239 if (ops != NULL) { |
239 memset(ops, 0, opsSize); |
240 memset(ops, 0, opsSize); |