diff options
author | EliteTK <tomasz.kramkowski@gmail.com> | 2014-07-10 22:36:56 +0100 |
---|---|---|
committer | EliteTK <tomasz.kramkowski@gmail.com> | 2014-07-10 22:36:56 +0100 |
commit | b60441758f9832a67f60e51a4ee92d16b166b9fb (patch) | |
tree | 7388adc9743181457834cc5eed95e3c452266ab0 /xcb.c | |
parent | a26f2837166f7232d13322e013883ed003d46f27 (diff) | |
parent | a8609ccd901b1942e862c14205026d841e640add (diff) | |
download | c-stuff-b60441758f9832a67f60e51a4ee92d16b166b9fb.tar.gz c-stuff-b60441758f9832a67f60e51a4ee92d16b166b9fb.tar.xz c-stuff-b60441758f9832a67f60e51a4ee92d16b166b9fb.zip |
Merge branch 'master' of https://github.com/EliteTK/c-stuff
Conflicts:
xcb.c
Diffstat (limited to 'xcb.c')
-rw-r--r-- | xcb.c | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -72,5 +72,33 @@ int main(int argc, char **argv) xcb_disconnect(connection); +/*#include <stdbool.h>*/ +/*#include <stdio.h>*/ +/*#include <stdlib.h>*/ +/*#include <xcb/xcb.h>*/ +/*#include <inttypes.h>*/ + +/*int main(int argc, char **argv)*/ +/*{*/ + /*int i, screen_num;*/ + /*xcb_connection_t *connection = xcb_connect(NULL, &screen_num);*/ + + /*const xcb_setup_t *setup = xcb_get_setup(connection);*/ + /*xcb_screen_iterator_t iter = xcb_setup_roots_iterator(setup);*/ + + /*for (i = 0; i < screen_num; i++) {*/ + /*xcb_screen_next(&iter);*/ + /*}*/ + + /*xcb_screen_t *screen = iter.data;*/ + + /*printf("\n");*/ + /*printf("Information about screen %"PRIu32":\n", screen->root);*/ + /*printf(" width : %"PRIu16"\n", screen->width_in_pixels);*/ + /*printf(" height : %"PRIu16"\n", screen->height_in_pixels);*/ + /*printf(" white pixel : %"PRIu32"\n", screen->white_pixel);*/ + /*printf(" black pixel : %"PRIu32"\n", screen->black_pixel);*/ + + /*xcb_disconnect(connection);*/ return 0; } |