LWJGL Forum

Programming => General Java Game Development => Topic started by: Qudus on July 12, 2008, 13:15:05

Title: Strange Display.setIcon() behavior
Post by: Qudus on July 12, 2008, 13:15:05
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
Title: Re: Strange Display.setIcon() behavior
Post by: Qudus on July 12, 2008, 19:25:35
Sorry for the false alarm. I found the bug in my own code. Thanks anyway.

Marvin