Updated to actually convert the passed int buffer

This commit is contained in:
Kevin Glass 2005-07-05 22:08:55 +00:00
parent 94e0bb30c0
commit 513fd74301
1 changed files with 2 additions and 2 deletions

View File

@ -515,7 +515,7 @@ static HICON createWindowIcon(JNIEnv *env, jint *pixels, jint width, jint height
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_Win32Display_nSetWindowIcon16
(JNIEnv *env, jclass clazz, jobject iconBuffer)
{
int *imgData = NULL;
int *imgData = (int *)(*env)->GetDirectBufferAddress(env, iconBuffer);
HICON newIcon = createWindowIcon(env, imgData, 16, 16);
if (newIcon != NULL) {
@ -532,7 +532,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_Win32Display_nSetWindowIcon16
JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_Win32Display_nSetWindowIcon32
(JNIEnv *env, jclass clazz, jobject iconBuffer)
{
int *imgData = NULL;
int *imgData = (int *)(*env)->GetDirectBufferAddress(env, iconBuffer);
HICON newIcon = createWindowIcon(env, imgData, 32, 32);
if (newIcon != NULL) {