Strange Display.setIcon() behavior

Started by Qudus, July 12, 2008, 13:15:05

Previous topic - Next topic

Qudus

hi

I am using Display.setIcon() to set the window's icon. I have created a ByteBuffer containing the RGBA data of one 32x32 image. Unfortunately the icon is tiled in four patches (with each the same image data of the whole image). If I use a 64x64 RGBA image, the icon is tiled in 16 patches. If I use a 16x16 image, the icon is messed up to unrecognizability.

I am working on Linux, so I followed the suggestion and used one 32x32 RGBA image. My code also branches for windows (one 16x16 image and one 32x32 image) and mac OS (one 128x128 image), but I haven't tested it yet.

I am using LWJGL 2.0-rc1.

Am I doing anything wrong? Or is this a bug in LWJGL?

Marvin

Qudus

Sorry for the false alarm. I found the bug in my own code. Thanks anyway.

Marvin