drmModeFreeResources(resources); close(fd); return-1; } // 创建一个cursor plane uint32_tcursor_id; ret=drmModeGetPlaneResources(fd); if(ret){ fprintf(stderr,"get plane resources failed: %s\n",strerror(errno)); drmModeFreeResources(resources); close(fd); return-1; } drmModePlaneRes*...