Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Creating SFML View.
- GdkEventMask mask;
- mask = GDK_ALL_EVENTS_MASK;
- gtk_widget_set_events(area, mask);
- gtk_widget_set_can_focus(area, true);
- gtk_widget_set_size_request(area, VIEW_S, VIEW_S);
- gtk_widget_realize(area);
- gtk_widget_set_double_buffered(area, false);
- gdk_window_resize(area->window, VIEW_S, VIEW_S);
- #ifdef _WIN32
- Win.create(sf::WindowHandle(GDK_WINDOW_HWND(area->window)));
- #else
- Win.create(sf::WindowHandle(GDK_WINDOW_XID(area->window)));
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement