diff options
author | Sven Gothel <[email protected]> | 2023-06-16 02:41:55 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-06-16 02:43:46 +0200 |
commit | 585bc34ca6e08cf5602eb7dbdb618b7a5771190c (patch) | |
tree | 1a0dd5403fcd9a3cfb15217fe6dfb666bdbda4c2 | |
parent | 4267837c591c9c205ff5206afaf38bba8c4215ac (diff) |
Adopt to GlueGen Struct API Change get/set array arguments
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | src/nativewindow/classes/jogamp/nativewindow/drm/DrmMode.java | 5 |
2 files changed, 6 insertions, 3 deletions
@@ -62,7 +62,7 @@ Bottom line, too much work has been performed to be listed here. However, let's have a few sentimental points listed and we may add a few more as we go. ### *OpenGL™ for Java™ (GL4Java)* -[*OpenGL™ for Java™ (GL4Java)*](https://jogamp.org/cgit/gl4java.git/about/) was developed by Sven Gothel [from March 1997](https://jausoft.com/gl4java/docs/overview/history.html) +[*OpenGL™ for Java™ (GL4Java)*](https://jogamp.org/cgit/gl4java.git/about/) was developed [from March 1997](https://jausoft.com/gl4java/docs/overview/history.html) until [March 2003](https://jogamp.org/cgit/gl4java.git/log/). Its concepts were reused in the subsequently launched [JOGL project](https://jogamp.org/jogl/www/) initially [lead by Sun Microsystems](#gluegen-joal-and-jogl-at-sun-microsystems) and later by [the JogAmp community](https://jogamp.org/), @@ -122,6 +122,8 @@ rendering *GL4Java* effectively *JOGL's* predecessor. A few of the concepts reu - 2023-05-06 [Supported MacOS Version](https://jogamp.org/cgit/gluegen.git/tree/doc/JogAmpMacOSVersions.md) - 2023-05-15 Fixed [DPI Scaling with AWT and AWT+NEWT](https://forum.jogamp.org/DPI-scaling-not-working-tp4042206p4042603.html) (JOGL) - 2023-05-20 [JOAL: OpenAL-Soft v1.23.1](https://openal-soft.org/), [git about](https://jogamp.org/cgit/joal.git/about/), [www face](https://jogamp.org/joal/www/). +- 2023-06-16 [GlueGen Revised Struct Mapping](https://jogamp.org/cgit/gluegen.git/commit/?id=8b127c4c1dd26fcb1756805ddb83729203161f78), [documentation](https://jogamp.org/gluegen/doc/GlueGen_Mapping.html) + - 2023-06-16 Added [GlueGen git-about](https://jogamp.org/cgit/gluegen.git/about/) and updated [www face](https://jogamp.org/gluegen/www/) ### Conferences - JavaOne [2002 (GL4Java)](https://jogamp.org/jogl/www/3167.pdf), [2003](https://jogamp.org/jogl/www/2125.pdf), [2004](https://jogamp.org/jogl/www/ts1361.pdf), [2006](https://jogamp.org/jogl/www/bof0899.pdf), [2007](https://jogamp.org/jogl/www/BOF-3908-JOGL-slides.pdf), [2008](https://www.youtube.com/watch?v=DeupVAMnvFA) 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; |