VideoModeList + IGUIEditBox under Linux

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Kayl
Posts: 14
Joined: Wed Jun 08, 2005 7:17 am

VideoModeList + IGUIEditBox under Linux

Post by Kayl »

Hello,

For a game I am starting, I wanted to have a configuration window listing all possible video modes. I use IrrlichtDevice::getVideoModeList. When I start a EDT_NULL device, there is not a single video mode in this list. When I start an other device (EDT_SOFTWARE or EDT_OPENGL) there is one video mode which in fact is only the current window size.
Am i missusing IVideoModeList ? I haven't tried this under Windows, so I don't know if the problem is only on Linux.

My other problem is with the IGUIEditBox, still under Linux.
I can use backspace (to erase the default text) but the letters key don't work.
That way the EditBox appears to be quite useless 8)
hybrid

Post by hybrid »

I prepared some patches for the Linux Keyboard handling available at parsys.informatik.uni-oldenburg.de/~hybrid/irrlicht
You should be able to use most keys then.

For the mode list with Linux there is indeed only one entry. It checks with XF86VidModeGetAllModeLines the available modes and chosses the first that matches width and height. If no matching mode is found the fullscreen mode is not used, otherwise the only mode stored is used. I guess this could be enhanced, but I don't use fullscreen, so I never touched that code parts.
Kayl
Posts: 14
Joined: Wed Jun 08, 2005 7:17 am

Post by Kayl »

I'v patched my Irrlicht with : LinuxKeyboard.patch
but it didn't change anything.
Is that a probem of charset ?

Edit : I am stupid. I was linking with both my old libIrrlicht.a and my old.
Now it works fine.
Thank you for your patch ! Thanks a lot.
Post Reply