src/gui/embedded/qscreenqnx_qws.cpp
changeset 22 79de32ba3296
parent 18 2f34d5167611
equal deleted inserted replaced
19:fcece45ef507 22:79de32ba3296
   203     // and let the surface point to it. Here, we use surface_create instead.
   203     // and let the surface point to it. Here, we use surface_create instead.
   204 
   204 
   205     int ret = gf_surface_create(&d->memSurface, d->device, w, h,
   205     int ret = gf_surface_create(&d->memSurface, d->device, w, h,
   206                 GF_FORMAT_ARGB8888, 0,
   206                 GF_FORMAT_ARGB8888, 0,
   207                 GF_SURFACE_CREATE_CPU_FAST_ACCESS | GF_SURFACE_CREATE_CPU_LINEAR_ACCESSIBLE
   207                 GF_SURFACE_CREATE_CPU_FAST_ACCESS | GF_SURFACE_CREATE_CPU_LINEAR_ACCESSIBLE
   208                 | GF_SURFACE_PHYS_CONTIG);
   208                 | GF_SURFACE_PHYS_CONTIG | GF_SURFACE_CREATE_SHAREABLE);
   209     if (ret != GF_ERR_OK) {
   209     if (ret != GF_ERR_OK) {
   210         qWarning("QQnxScreen: gf_surface_create(%dx%d) failed with error code %d",
   210         qWarning("QQnxScreen: gf_surface_create(%dx%d) failed with error code %d",
   211                 w, h, ret);
   211                 w, h, ret);
   212         return false;
   212         return false;
   213     }
   213     }