re PR awt/28666 (IllegalAccessError in gtk peers)
PR classpath/28666: * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.c (Java_gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice_nativeGetDisplayModes): Create a 'short' array. From-SVN: r116044
This commit is contained in:
parent
2d8ba2c76b
commit
1506961e11
@ -1,3 +1,10 @@
|
||||
2006-08-09 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR classpath/28666:
|
||||
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.c
|
||||
(Java_gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice_nativeGetDisplayModes):
|
||||
Create a 'short' array.
|
||||
|
||||
2006-08-07 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR libgcj/28609:
|
||||
|
@ -248,8 +248,8 @@ Java_gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice_nativeGetDisplayModes
|
||||
/* Retrieves refresh rate information. */
|
||||
rates = XRRConfigRates(config, i, &nrates);
|
||||
|
||||
/* Create a Java int array and put them in. */
|
||||
shortArray = (*env)->NewIntArray(env, nrates);
|
||||
/* Create a Java short array and put them in. */
|
||||
shortArray = (*env)->NewShortArray(env, nrates);
|
||||
(*env)->SetShortArrayRegion(env, shortArray, 0, nrates, (jshort *) rates);
|
||||
|
||||
/* Create a GdkScreenGraphicsDevice.X11DisplayMode instance. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user