Patch for compiling with wxWidget 2.8 under linux
Brought to you by:
segra
I tried to compile your editor under linux with wxWidget 2.8 and this is the result.
Main problems were:
- #pragma pack was used wrong
- creating of wxBitmap from SDL_Surface does not work
- conversion from std::string to wxString (and other way round) is not implicit in wxWidget 2.8
- wxListCtrl::GetItemText(int, int) does not exist in wxWidget 2.8
- switch from "/" to "\"
- replace sprintf_s with sprintf (the former is windows only afaik)
- use delete [] for new[]
- while setting up the windows some not yet initialized pointers were used. added check for uninitialized pointers
Thanks for your patch!
Ive applied certain patches to the SVN, however there are changes which render it non-compilable on windows, and at present I don't have a linux machine setup to test against.
A couple of changes (moving of stdafx.h references before the frame/dialog headers), cause the windows version to crash upon startup (there must be some incompatibility issues between the sdl and wxwidgets headers i guess?)