aports/testing/openjfx/fix-build-error.patch
2026-01-19 22:28:53 +00:00

16 lines
485 B
Diff

--- a/modules/javafx.graphics/src/main/native-font/freetype.c
+++ b/modules/javafx.graphics/src/main/native-font/freetype.c
@@ -391,9 +391,11 @@
(JNIEnv *env, jclass that, jlong arg0, jobject arg1, jlong arg2, jlong arg3)
{
FT_Vector *lpDelta = NULL;
+ FT_Vector tmp;
if (arg2 || arg3) {
FT_Vector vec = {arg2, arg3};
- lpDelta = &vec;
+ tmp = vec;
+ lpDelta = &tmp;
}
if (arg1) {
FT_Matrix matrix, *lpMatrix = NULL;