Removed custom event handler

This commit is contained in:
Bob Polis 2021-01-29 17:18:28 +01:00
parent 5ce8eed0c7
commit 3549bd8b10

View File

@ -117,10 +117,6 @@ int main(int argc, const char * argv[]) {
// main window
sc::gui::Window& window {sc::gui::Window::new_window("living art")};
main_window = &window;
window.add_event_handler([](const SDL_Event& event, bool quit) -> bool {
std::cerr << "closing window " << event.window.windowID << '\n';
return quit;
}, SDL_WINDOWEVENT_CLOSE);
// create an SDL drawing surface and connect it to cairo
SDL_Surface* s {SDL_CreateRGBSurface(0, WIDTH, HEIGHT, 32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0)};