corrections[i].monitor_name = (char *)malloc(namelen+1);
strcpy(corrections[i].monitor_name, name_ptr);
- corrections[i].keystone_vertical = values[i*4]/10000.0f;
- corrections[i].cylinder_depth = values[i*4+1]/10000.0f;
- corrections[i].vertical_center = values[i*4+2]/10000.0f;
- corrections[i].perspective = values[i*4+3]/10000.0f;
+ corrections[i].keystone_vertical = values[i*4]/4096.0f;
+ corrections[i].cylinder_depth = values[i*4+1]/4096.0f;
+ corrections[i].vertical_center = values[i*4+2]/4096.0f;
+ corrections[i].perspective = values[i*4+3]/4096.0f;
name_ptr += namelen+1;
}
strcpy(name_ptr, corrections[i].monitor_name);
name_ptr += strlen(name_ptr)+1;
- values[i*4] = corrections[i].keystone_vertical*10000;
- values[i*4+1] = corrections[i].cylinder_depth*10000;
- values[i*4+2] = corrections[i].vertical_center*10000;
- values[i*4+3] = corrections[i].perspective*10000;
+ values[i*4] = corrections[i].keystone_vertical*4096;
+ values[i*4+1] = corrections[i].cylinder_depth*4096;
+ values[i*4+2] = corrections[i].vertical_center*4096;
+ values[i*4+3] = corrections[i].perspective*4096;
}
root = DefaultRootWindow(display);
vertex_data = (float *)malloc(nvertices*3*sizeof(float));
for(i=0; i<nvertices*3; ++i)
- vertex_data[i] = geometry_data[1+i]/10000.0f;
+ vertex_data[i] = geometry_data[1+i]/4096.0f;
view->nelements = tessellation*((tessellation+1)*2+1)-1;