@@ -57,7 +57,6 @@ struct ModuleWidget : OpaqueWidget { | |||||
bool requested = false; | bool requested = false; | ||||
Vec requestedPos; | Vec requestedPos; | ||||
Vec dragPos; | Vec dragPos; | ||||
Widget *onMouseMove(Vec pos, Vec mouseRel); | |||||
Widget *onHoverKey(Vec pos, int key); | Widget *onHoverKey(Vec pos, int key); | ||||
void onDragStart(); | void onDragStart(); | ||||
void onDragMove(Vec mouseRel); | void onDragMove(Vec mouseRel); | ||||
@@ -152,10 +152,6 @@ void ModuleWidget::draw(NVGcontext *vg) { | |||||
nvgResetScissor(vg); | nvgResetScissor(vg); | ||||
} | } | ||||
Widget *ModuleWidget::onMouseMove(Vec pos, Vec mouseRel) { | |||||
return OpaqueWidget::onMouseMove(pos, mouseRel); | |||||
} | |||||
Widget *ModuleWidget::onHoverKey(Vec pos, int key) { | Widget *ModuleWidget::onHoverKey(Vec pos, int key) { | ||||
switch (key) { | switch (key) { | ||||
case GLFW_KEY_DELETE: | case GLFW_KEY_DELETE: | ||||
@@ -207,9 +207,6 @@ void guiInit() { | |||||
err = glfwInit(); | err = glfwInit(); | ||||
assert(err); | assert(err); | ||||
const char *glVersion = (const char *)glGetString(GL_VERSION); | |||||
printf("OpenGL version %s\n", glVersion); | |||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2); | glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2); | ||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); | glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); | ||||
// glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); | // glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); | ||||