summaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-06-16 02:41:55 +0200
committerSven Gothel <[email protected]>2023-06-16 02:43:46 +0200
commit585bc34ca6e08cf5602eb7dbdb618b7a5771190c (patch)
tree1a0dd5403fcd9a3cfb15217fe6dfb666bdbda4c2 /src/nativewindow/classes/jogamp
parent4267837c591c9c205ff5206afaf38bba8c4215ac (diff)
Adopt to GlueGen Struct API Change get/set array arguments
Diffstat (limited to 'src/nativewindow/classes/jogamp')
-rw-r--r--src/nativewindow/classes/jogamp/nativewindow/drm/DrmMode.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/drm/DrmMode.java b/src/nativewindow/classes/jogamp/nativewindow/drm/DrmMode.java
index 44b2a1327..e7e980abf 100644
--- a/src/nativewindow/classes/jogamp/nativewindow/drm/DrmMode.java
+++ b/src/nativewindow/classes/jogamp/nativewindow/drm/DrmMode.java
@@ -1,5 +1,5 @@
/**
- * Copyright 2019 JogAmp Community. All rights reserved.
+ * Copyright 2019-2023 JogAmp Community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
@@ -136,7 +136,8 @@ public class DrmMode {
_connectors.toArray(res.connectors);
}
for(int k=0; k<res.count; k++) {
- final drmModeModeInfo _modes[] = res.connectors[k].getModes(0, new drmModeModeInfo[res.connectors[k].getCount_modes()]);
+ final int _modeCount = res.connectors[k].getCount_modes();
+ final drmModeModeInfo _modes[] = res.connectors[k].getModes(0, new drmModeModeInfo[_modeCount], 0, _modeCount);
drmModeModeInfo _mode = null;
{
int maxArea = 0;