Hello Guest

Strange Display.setIcon() behavior

  • 1 Replies
  • 8312 Views
*

Offline Qudus

  • ***
  • 123
Strange Display.setIcon() behavior
« 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

*

Offline Qudus

  • ***
  • 123
Re: Strange Display.setIcon() behavior
« Reply #1 on: July 12, 2008, 19:25:35 »
Sorry for the false alarm. I found the bug in my own code. Thanks anyway.

Marvin