commits on Jun 18 2018
success

use GetWindow()->Refresh() on non-GTK too #260 Default to GetWindow()->Refresh() to draw the game area on non-GTK platforms as well, and only use the DrawArea(dc) method in GTK2 and lower.

rkitover authored to master

success

fix high CPU usage under wxgtk2 #260 When using GTK2, call DrawArea(dc) instead of GetWindow()->Refresh(), this prevents glib from using huge amounts of CPU (as discovered by @retro-wertz .) Switching video drivers sometimes crashes the app, the DrawArea() call is as safe as possible, the problem is elsewhere.

rkitover authored to master

success

fix $ENV{WX_CONFIG} check yet again The expansion must be quoted as "$ENV{WX_CONFIG}" when passed as a parameter e.g. to if() otherwise it expands to no parameter when empty.

rkitover authored to master

success

Buildfix

retro-wertz authored to patch-3

failure

fix $ENV{WX_CONFIG} check in 46f52941 Apparently in cmake empty env vars do not evaluate to false, use explicit STREQUAL "".

rkitover authored to master

success

do not prefer wxgtk3 if $ENV{WX_CONFIG} is set Skip the check for wx-config-gtk3 if the WX_CONFIG environment variable is set, indicating that the user wants to override the version of wx to build against.

rkitover authored to master

success

clean up wxgtk3 finding cmake code Use a loop to check for wx-config-gtk4 then wx-config-gtk3 and unset the config executable variable otherwise. Also remove gl from the initial wx libraries list.

rkitover authored to master

success

support and default to wxgtk3 not gtk2 on arch Change installdeps to install wxgtk3 on arch instead of the wxgtk package which uses gtk2. Update the cmake code to check for the renamed wx-config executable wx-config-gtk3 on arch, first checking for wx-config-gtk4 for the future.

rkitover authored to master