From 94c1b2d414055f9a4ea203fb210666aa769d0096 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Sun, 10 Jan 2021 19:51:03 +0100 Subject: Create xcb surface and swapchain --- src/window.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/window.cpp') diff --git a/src/window.cpp b/src/window.cpp index 93c7517..1bfc903 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1,6 +1,7 @@ #include "window.hpp" -window::window() { +window::window(uint32_t width, uint32_t height) + :width(width), height(height) { connection = xcb_connect(NULL, NULL); win = xcb_generate_id(connection); @@ -14,8 +15,8 @@ window::window() { screen_info->root, 10, 10, - 400, - 400, + width, + height, 10, XCB_WINDOW_CLASS_INPUT_OUTPUT, screen_info->root_visual, -- cgit v1.3