Initialize output position properly.

This commit is contained in:
Kristian Høgsberg 2009-01-15 11:44:35 -05:00
parent 3b94998f6a
commit e68d24c559
1 changed files with 2 additions and 0 deletions

View File

@ -922,6 +922,8 @@ create_output(struct egl_compositor *ec, struct udev_device *device)
output->crtc_id = encoder->crtc_id;
output->connector_id = connector->connector_id;
output->mode = mode;
output->x = 0;
output->y = 0;
output->width = mode->hdisplay;
output->height = mode->vdisplay;
output->stride = mode->hdisplay * 4;