Browse Source

Remove ability to set native parent of Window in this branch.

tags/v2.0.0
Andrew Belt 5 years ago
parent
commit
28666a57fc
2 changed files with 2 additions and 5 deletions
  1. +1
    -1
      include/window.hpp
  2. +1
    -4
      src/window.cpp

+ 1
- 1
include/window.hpp View File

@@ -75,7 +75,7 @@ struct Window {
std::map<std::string, std::weak_ptr<Image>> imageCache;
std::map<std::string, std::weak_ptr<Svg>> svgCache;

Window(void* handle = NULL);
Window();
~Window();
void run();
/** Takes a screenshot of each module */


+ 1
- 4
src/window.cpp View File

@@ -214,7 +214,7 @@ static void errorCallback(int error, const char* description) {
WARN("GLFW error %d: %s", error, description);
}

Window::Window(void* handle) {
Window::Window() {
internal = new Internal;
int err;

@@ -235,9 +235,6 @@ Window::Window(void* handle) {
glfwWindowHint(GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_TRUE);
#endif

if (handle)
glfwWindowHintPointer(GLFW_NATIVE_PARENT_HANDLE, handle);

// Create window
win = glfwCreateWindow(800, 600, "", NULL, NULL);
if (!win) {


Loading…
Cancel
Save