| 794 | |
| 795 | |
| 796 | VGLFBConfig *getFBConfigs(Display *dpy, int screen, int &nElements) |
| 797 | { |
| 798 | VGLFBConfig *configs = NULL; |
| 799 | |
| 800 | if(!dpy || screen < 0) return NULL; |
| 801 | |
| 802 | buildCfgAttribTable(dpy, screen); |
| 803 | GET_CA_TABLE() |
| 804 | |
| 805 | configs = (VGLFBConfig *)calloc(caEntries, sizeof(VGLFBConfig)); |
| 806 | if(!configs) return NULL; |
| 807 | |
| 808 | nElements = caEntries; |
| 809 | for(int i = 0; i < nElements; i++) |
| 810 | configs[i] = &ca[i]; |
| 811 | |
| 812 | return configs; |
| 813 | } |
| 814 | |
| 815 | |
| 816 | static int compareFBConfig(const void *arg1, const void *arg2) |
no test coverage detected