summaryrefslogtreecommitdiff
path: root/libdrm
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-04-12 08:54:31 +1000
committerDave Airlie <airlied@linux.ie>2007-04-12 08:54:31 +1000
commit981f8156de0c5ec6387f659fbcac031d663d943c (patch)
treec5fae4b0bbe0970c9cc617d818080764c79d36ae /libdrm
parenta81558d8b3ee17fbf46e32b10732e22fcd997858 (diff)
allow framebuffer changes on the crtc setup
Diffstat (limited to 'libdrm')
-rw-r--r--libdrm/xf86drmMode.c2
-rw-r--r--libdrm/xf86drmMode.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libdrm/xf86drmMode.c b/libdrm/xf86drmMode.c
index 6070ec6f..cb534678 100644
--- a/libdrm/xf86drmMode.c
+++ b/libdrm/xf86drmMode.c
@@ -276,7 +276,7 @@ drmModeCrtcPtr drmModeGetCrtc(int fd, uint32_t crtcId)
r->mode = crtc.mode;
// r->width = crtc.width;
// r->height = crtc.height;
- r->bufferId = crtc.fb_id;
+ r->buffer_id = crtc.fb_id;
r->gamma_size = crtc.gamma_size;
r->count_outputs = crtc.count_outputs;
r->count_possibles = crtc.count_possibles;
diff --git a/libdrm/xf86drmMode.h b/libdrm/xf86drmMode.h
index 6a566c4d..c87a95da 100644
--- a/libdrm/xf86drmMode.h
+++ b/libdrm/xf86drmMode.h
@@ -80,7 +80,7 @@ typedef struct drm_mode_fb_cmd drmModeFrameBuffer, *drmModeFrameBufferPtr;
typedef struct _drmModeCrtc {
- unsigned int bufferId; /**< Buffer currently connected to */
+ unsigned int buffer_id; /**< FB id to connect to 0 = disconnect*/
uint32_t x, y; /**< Position on the frameuffer */
uint32_t width, height;