Cryslon wrote:The only bug i'm having is that the window isn't being resized properly on application launch, screenshot attached. When i switch levels, everything becomes okay.

I also have this problem - and I've struggled with it for my own wxWidgets programs as well! In Ubuntu 12.04 classic the menus appear right below the title bar, and when you use SetClientSize before the menu appears the menu size is not accounted for. I don't know if this is a bug of wxWidgets or Ubuntu or what, but if I compile programs on my machine with the latest Ubuntu they seem to work correctly.

Also, I found you can open squares by clicking in the "dead" area around the board when the window size is larger required (refresh the window to see them) - and if you hit a mine using this method the game doesn't stop! I found this because I noticed you could make the right and bottom borders disappear by clicking and dragging over them if the window size is right. Also, the program sometimes segfaults if I do this enough.

The mouse button handling is a little sketchy too (e.g., you can open/flag squares with the middle mouse button held down), but overall well done! Nice work.

Also, I found you can open squares by clicking in the "dead" area around the board when the window size is larger required (refresh the window to see them) - and if you hit a mine using this method the game doesn't stop! I found this because I noticed you could make the right and bottom borders disappear by clicking and dragging over them if the window size is right. Also, the program sometimes segfaults if I do this enough.

On Windows and most Linux Desktops resizing the window is disabled. But on some Linux Desktops this does not work, so would have to fix the window size with dirty hacks. The awkward behavior is not surprising because I assumed no resizing. Maybe I should do more testing with different Linux Desktops.

The mouse button handling is a little sketchy too (e.g., you can open/flag squares with the middle mouse button held down)

senfti wrote:On Windows and most Linux Desktops resizing the window is disabled. But on some Linux Desktops this does not work, so would have to fix the window size with dirty hacks.

This was another problem I ran into with one of my wxWidgets programs. I discussed it with the wxWidgets developers on their bug tracker and it was fixed for me at least (though this was in 2013 so maybe the problem has arisen again).