// Copyright status: this file is in the public domain. #include "lx.h" #include "internal.h" int lx_screen_depth(LX_CONN *xc, int s, int d) { if ((xc->flags & XCF_FAIL) || (s < 0) || (s >= xc->nscreens) || (d < 0) || (d >= xc->screens[s].ndepths)) return(-1); return(xc->screens[s].depths[d].depth); }