OSDN Git Service

PR classpath/28666:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Aug 2006 19:00:54 +0000 (19:00 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Aug 2006 19:00:54 +0000 (19:00 +0000)
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.c
(Java_gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice_nativeGetDisplayModes):
Create a 'short' array.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116044 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/classpath/ChangeLog.gcj
libjava/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.c

index 62b2071..db24f53 100644 (file)
@@ -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:
index 965fb5a..4053ad8 100644 (file)
@@ -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. */