Lines Matching defs:monitor
858 XF86VidModeGetMonitor(Display* dpy, int screen, XF86VidModeMonitor* monitor)
879 monitor->nhsync = rep.nhsync;
880 monitor->nvsync = rep.nvsync;
882 monitor->bandwidth = (float)rep.bandwidth / 1e6;
885 monitor->vendor = Xcalloc(rep.vendorLength + 1, 1);
886 if (monitor->vendor == NULL)
889 monitor->vendor = NULL;
892 monitor->model = Xcalloc(rep.modelLength + 1, 1);
893 if (monitor->model == NULL)
896 monitor->model = NULL;
899 monitor->hsync = Xcalloc(rep.nhsync, sizeof(XF86VidModeSyncRange));
900 monitor->vsync = Xcalloc(rep.nvsync, sizeof(XF86VidModeSyncRange));
901 if ((monitor->hsync == NULL) || (monitor->vsync == NULL))
904 monitor->hsync = monitor->vsync = NULL;
908 Xfree(monitor->vendor);
909 monitor->vendor = NULL;
910 Xfree(monitor->model);
911 monitor->model = NULL;
912 Xfree(monitor->hsync);
913 monitor->hsync = NULL;
914 Xfree(monitor->vsync);
915 monitor->vsync = NULL;
920 monitor->hsync[i].lo = (float)(syncrange & 0xFFFF) / 100.0;
921 monitor->hsync[i].hi = (float)(syncrange >> 16) / 100.0;
925 monitor->vsync[i].lo = (float)(syncrange & 0xFFFF) / 100.0;
926 monitor->vsync[i].hi = (float)(syncrange >> 16) / 100.0;
929 _XReadPad(dpy, monitor->vendor, rep.vendorLength);
931 _XReadPad(dpy, monitor->model, rep.modelLength);