Removed custom event handler
This commit is contained in:
parent
5ce8eed0c7
commit
3549bd8b10
4
main.cpp
4
main.cpp
@ -117,10 +117,6 @@ int main(int argc, const char * argv[]) {
|
|||||||
// main window
|
// main window
|
||||||
sc::gui::Window& window {sc::gui::Window::new_window("living art")};
|
sc::gui::Window& window {sc::gui::Window::new_window("living art")};
|
||||||
main_window = &window;
|
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
|
// create an SDL drawing surface and connect it to cairo
|
||||||
SDL_Surface* s {SDL_CreateRGBSurface(0, WIDTH, HEIGHT, 32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0)};
|
SDL_Surface* s {SDL_CreateRGBSurface(0, WIDTH, HEIGHT, 32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0)};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user