Selaa lähdekoodia

Upload files to ''

master
bricks 1 vuosi sitten
vanhempi
commit
476fd02e10
1 muutettua tiedostoa jossa 0 lisäystä ja 10 poistoa
  1. +0
    -10
      test.c

+ 0
- 10
test.c Näytä tiedosto

@@ -51,7 +51,6 @@ static long _t_full = 0;
static long _t_paint = 0;
static long _t_xsync = 0;

static double _delay = 0;
static double _fps = 0;
static long _total = 0;

@@ -252,15 +251,6 @@ _init_xcb(void)
/* xcb_wait_for_event() queue */

_x_sev = xcb_register_for_special_xge(_x_con, &xcb_present_id, id, &stamp);

/* get frame delay */

xcb_randr_get_screen_info_cookie_t k = xcb_randr_get_screen_info(_x_con, _x_scr->root);
xcb_randr_get_screen_info_reply_t *r = xcb_randr_get_screen_info_reply(_x_con, k, NULL);

_delay = 1000000.0 / (double)r->rate;

free(r);
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/


Loading…
Peruuta
Tallenna