screenstags/v0.3.0
@@ -1,6 +1,6 @@ | |||||
ARCH ?= linux | ARCH ?= linux | ||||
CFLAGS = -MMD -g -Wall -O2 | CFLAGS = -MMD -g -Wall -O2 | ||||
CXXFLAGS = -MMD -g -Wall -std=c++11 -O2 -ffast-math -fno-exceptions \ | |||||
CXXFLAGS = -MMD -g -Wall -std=c++11 -O3 -ffast-math -fno-exceptions \ | |||||
-I./lib -I./include | -I./lib -I./include | ||||
LDFLAGS = | LDFLAGS = | ||||
@@ -15,7 +15,7 @@ CXX = g++ | |||||
SOURCES += lib/noc/noc_file_dialog.c | SOURCES += lib/noc/noc_file_dialog.c | ||||
CFLAGS += -DNOC_FILE_DIALOG_GTK $(shell pkg-config --cflags gtk+-2.0) | CFLAGS += -DNOC_FILE_DIALOG_GTK $(shell pkg-config --cflags gtk+-2.0) | ||||
CXXFLAGS += -DLINUX | CXXFLAGS += -DLINUX | ||||
LDFLAGS += -lpthread -lGL -lGLEW -lglfw -ldl -ljansson -lportaudio -lportmidi \ | |||||
LDFLAGS += -rdynamic -lpthread -lGL -lGLEW -lglfw -ldl -ljansson -lportaudio -lportmidi \ | |||||
$(shell pkg-config --libs gtk+-2.0) | $(shell pkg-config --libs gtk+-2.0) | ||||
TARGET = Rack | TARGET = Rack | ||||
endif | endif | ||||
@@ -3,7 +3,6 @@ | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <math.h> | #include <math.h> | ||||
#include <vector> | |||||
#include <list> | #include <list> | ||||
#include <map> | #include <map> | ||||
@@ -152,9 +152,8 @@ void keyCallback(GLFWwindow* window, int key, int scancode, int action, int mods | |||||
void renderGui() { | void renderGui() { | ||||
int width, height; | int width, height; | ||||
// The docs say to use the framebuffer size to get pixel-perfect matching for high-DPI displays, but I actually don't want this. On 2x displays, one gui pixel should be 2x2 monitor pixels. | |||||
// glfwGetFramebufferSize(window, &width, &height); | |||||
glfwGetWindowSize(window, &width, &height); | |||||
glfwGetFramebufferSize(window, &width, &height); | |||||
// glfwGetWindowSize(window, &width, &height); | |||||
// Update and render | // Update and render | ||||
glViewport(0, 0, width, height); | glViewport(0, 0, width, height); | ||||
@@ -33,9 +33,9 @@ int main() { | |||||
#endif | #endif | ||||
pluginInit(); | |||||
rackInit(); | rackInit(); | ||||
guiInit(); | guiInit(); | ||||
pluginInit(); | |||||
gRackWidget->loadPatch("autosave.json"); | gRackWidget->loadPatch("autosave.json"); | ||||
rackStart(); | rackStart(); | ||||