diff --git a/compile_raygui.sh b/compile_raygui.sh index d2b7b84..c63db2b 100755 --- a/compile_raygui.sh +++ b/compile_raygui.sh @@ -1 +1,6 @@ -gcc -shared -fPIC -DRAYGUIDEF -DRAYGUI_IMPLEMENTATION -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 raygui.h -o raygui.so +#! /usr/bin/env bash + +# Run from raygui/src +mv raygui.h raygui.c # Needed to compile as a shared library or else GCC won't expose symbols +gcc -shared -fPIC -DRAYGUIDEF -DRAYGUI_IMPLEMENTATION -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 raygui.c -o raygui.so +mv raygui.c raygui.h diff --git a/src/lsystem.nim b/src/lsystem.nim index 6d3f90f..0f7d3b0 100644 --- a/src/lsystem.nim +++ b/src/lsystem.nim @@ -327,9 +327,6 @@ proc guiLoop*() = instructionLists = @[] startingPositions = @[] - screenWidth = (monitor.GetMonitorWidth() / 2).int - screenHeight = (monitor.GetMonitorHeight() / 2).int - # Make sure to clear the background before drawing ClearBackground(BLACK)