surface->Flip(&region, (DFBSurfaceFlipFlags)0);
surface->Flip(&region, DSFLIP_NONE);
   void flip() {      if (!dontFlip) {         if (regionValid) {            //printf("Flipping surface %p, region %dx%d - %dx%d\n", surface, region.x1, region.y1, region.x2, region.y2);            try {               surface->Flip(&region, (DFBSurfaceFlipFlags)0);            } catch (DFBException *e) {               printf("DirectFB: Error %s, %s\n", e->GetAction(), e->GetResult());               delete e;            }            region.y2--;            region=nullRegion;            regionValid=false;         }      }   }