| @@ -1,4 +1,5 @@ | |||||
| VERSION = 0.6.0dev | VERSION = 0.6.0dev | ||||
| RACK_DIR = . | |||||
| FLAGS += \ | FLAGS += \ | ||||
| -Iinclude \ | -Iinclude \ | ||||
| @@ -1,6 +1,7 @@ | |||||
| ifdef VERSION | ifdef VERSION | ||||
| FLAGS += -DVERSION=$(VERSION) | FLAGS += -DVERSION=$(VERSION) | ||||
| endif | endif | ||||
| RACK_DIR ?= . | |||||
| # Generate dependency files alongside the object files | # Generate dependency files alongside the object files | ||||
| FLAGS += -MMD | FLAGS += -MMD | ||||
| @@ -14,6 +15,8 @@ endif | |||||
| CXXFLAGS += -std=c++11 | CXXFLAGS += -std=c++11 | ||||
| include $(RACK_DIR)/arch.mk | |||||
| ifeq ($(ARCH), lin) | ifeq ($(ARCH), lin) | ||||
| FLAGS += -DARCH_LIN | FLAGS += -DARCH_LIN | ||||
| endif | endif | ||||
| @@ -461,7 +461,7 @@ void windowRun() { | |||||
| glfwGetWindowSize(gWindow, &windowWidth, &windowHeight); | glfwGetWindowSize(gWindow, &windowWidth, &windowHeight); | ||||
| gWindowRatio = (float)width / windowWidth; | gWindowRatio = (float)width / windowWidth; | ||||
| gScene->box.size = Vec(width, height).div(gPixelRatio / gWindowRatio); | |||||
| gScene->box.size = Vec(windowWidth, windowHeight); | |||||
| // Step scene | // Step scene | ||||
| gScene->step(); | gScene->step(); | ||||