if (!(r = drmMalloc(sizeof(*r))))
return 0;
-
+
+ r->crtc_id = crtc.crtc_id;
r->x = crtc.x;
r->y = crtc.y;
r->mode = crtc.mode;
if(!(r = drmMalloc(sizeof(*r))))
return 0;
+ r->output_id = out.output;
r->connection = out.connection;
r->mmWidth = out.mm_width;
r->mmHeight = out.mm_height;
typedef struct drm_mode_fb_cmd drmModeFB, *drmModeFBPtr;
typedef struct _drmModeCrtc {
-
+ unsigned int crtc_id;
unsigned int buffer_id; /**< FB id to connect to 0 = disconnect*/
uint32_t x, y; /**< Position on the frameuffer */
} drmModeSubPixel;
typedef struct _drmModeOutput {
+ unsigned int output_id;
unsigned int crtc; /**< Crtc currently connected to */
unsigned char name[DRM_OUTPUT_NAME_LEN];