Concerning the fbcon: If you can see a penguin or a "fancy" splash screen at boot time you have fbcon. You can have a look in dmesg mentioning framebuffer or read about it in the kernel docs. The old vesafb is controlled by the vga option which can give you a very neat console resolution see the kernel docs. SDL will tell you too, I think.
Announcement
Collapse
No announcement yet.
COMPILE: Linux Port
Collapse
X
-
Committed my changes to the linux branch which solve a few segfaults and most important make the sprites stay visible. The are now even animated when moving. I also implemented movie playing with a system mplayer.
I changed the routine used for setting file positions and it might help with the rim problem.
I can't change the status of the linux port reported in the FAQ: http://apolyton.net/forums/showthrea...hreadid=139275 Could someone update that to fully playable? Also advertise the linux branch as much as possible so perhaps some day the changes for linux get merged into trunk...
Comment
-
I see, I haven't ever posted a screenshot here to what I mean with the mouse artefacts. The main panel is messed up after a few moves over it. I think the problem is that one mouse pointer update is sometimes skipped after the first and the background rec for the second event is used for the background of the third event. Any ideas where to start debugging?
Comment
-
Originally posted by lynx_abraxas
Committed my changes to the linux branch which solve a few segfaults and most important make the sprites stay visible.
Did you have a look at the trunk version of Anim.cpp? It has been modified in revision 494 to solve the crashes without introducing memory leaks.
Comment
-
My understanding of the Anim class is that it contains the basic bookkeeping (current frame number etc.) of an individual instance on screen. So there can be multiple instances of the same "file" animation, and each instance may be executing at a different stage.
Comment
-
I'm currently looking into the code that evaluates the keyboard input because in the linux port it is not possible to type into textfields (eg when saving a game or renaming a city). It seems to me the keyhandler for the ui_control is incomplete. It only evaluates \t and ' '. When I compared the code with trunk I could not find any differences.
So I'm wondering if input into textfields works under windows and if so where that is handled?
Another thing: I made the mouse wheel work under the linux port but I had to notice that the wheel input is disgarded for lists in the loadsave window. How is that under windows and is there a reason it has no mouse_over handler?
Comment
-
Originally posted by lynx_abraxas
I'm currently looking into the code that evaluates the keyboard input because in the linux port it is not possible to type into textfields (eg when saving a game or renaming a city). It seems to me the keyhandler for the ui_control is incomplete. It only evaluates \t and ' '. When I compared the code with trunk I could not find any differences.
So I'm wondering if input into textfields works under windows and if so where that is handled?
Originally posted by lynx_abraxas
Another thing: I made the mouse wheel work under the linux port but I had to notice that the wheel input is disgarded for lists in the loadsave window. How is that under windows and is there a reason it has no mouse_over handler?
-MartinCiv2 military advisor: "No complaints, Sir!"
Comment
-
Originally posted by Martin Gühmann
The loadsave list doesn't react on mouse wheel input on windows either. I have no idea why it does not have a mouse_over handler.
Comment
-
Thanks Fromafar for that explanation. Knowing that now the code makes much more sense to me. At least it then took me only about 20 minutes to implement mouse wheel reaction to the c3_ListBox
When investigating the textfield problem further I could implement the textfield height to be dependent on the fontsize but I'm still stuck on the normal key handling.
Something I wonder is what CallWindowProc is doing and where it is implemented or when/what is calling TextFieldWindowProc?
I also wonder if any text field implicitly inherits aui_control?
Could some one check if under M$ windows the key handler of the top window does some thing if there is a textfield in the window?
ctp2_code/ui/aui_ctp2/keypress.cpp:398: if(topWindow->HandleKey(wParam)){
Comment
-
Originally posted by lynx_abraxas View PostI can't change the status of the linux port reported in the FAQ: http://apolyton.net/forums/showthrea...hreadid=139275 Could someone update that to fully playable?
Comment
-
help for port to new OS
Is anyone out there still actively working on UNIX-specific aspects of CTP2?
I've managed to get things compiled under FreeBSD; I have a list of what it took to make that happen, and would like to hand it off someone who can a) integrate it and b) commit it.
The compiled version does not run. Or rather it runs for about 3 seconds and segfaults. Does anyone have the time and programming skills to help me get it working?
Robert Huff
Comment
Comment