gdi_surface_update_buffers(struct native_surface *nsurf, uint buffer_mask)
{
struct gdi_surface *gsurf = gdi_surface(nsurf);
- boolean ret;
- gdi_surface_update_geometry(&gsurf->base);
- ret = resource_surface_add_resources(gsurf->rsurf, buffer_mask);
- gsurf->client_stamp = gsurf->server_stamp;
+ if (gsurf->client_stamp != gsurf->server_stamp) {
+ gdi_surface_update_geometry(&gsurf->base);
+ gsurf->client_stamp = gsurf->server_stamp;
+ }
- return ret;
+ return resource_surface_add_resources(gsurf->rsurf, buffer_mask);
}
/**
struct gdi_surface *gsurf = gdi_surface(nsurf);
uint w, h;
- if (gsurf->client_stamp != gsurf->server_stamp) {
- if (!gdi_surface_update_buffers(&gsurf->base, attachment_mask))
- return FALSE;
- }
+ if (!gdi_surface_update_buffers(&gsurf->base, attachment_mask))
+ return FALSE;
if (seq_num)
*seq_num = gsurf->client_stamp;
}
/* initialize the geometry */
- gdi_surface_update_buffers(&gsurf->base, 0x0);
+ gdi_surface_update_geometry(&gsurf->base);
gsurf->base.destroy = gdi_surface_destroy;
gsurf->base.swap_buffers = gdi_surface_swap_buffers;
ximage_surface_update_buffers(struct native_surface *nsurf, uint buffer_mask)
{
struct ximage_surface *xsurf = ximage_surface(nsurf);
- boolean ret;
- ximage_surface_update_geometry(&xsurf->base);
- ret = resource_surface_add_resources(xsurf->rsurf, buffer_mask);
- xsurf->client_stamp = xsurf->server_stamp;
+ if (xsurf->client_stamp != xsurf->server_stamp) {
+ ximage_surface_update_geometry(&xsurf->base);
+ xsurf->client_stamp = xsurf->server_stamp;
+ }
- return ret;
+ return resource_surface_add_resources(xsurf->rsurf, buffer_mask);
}
/**
struct ximage_surface *xsurf = ximage_surface(nsurf);
uint w, h;
- if (xsurf->client_stamp != xsurf->server_stamp) {
- if (!ximage_surface_update_buffers(&xsurf->base, attachment_mask))
- return FALSE;
- }
+ if (!ximage_surface_update_buffers(&xsurf->base, attachment_mask))
+ return FALSE;
if (seq_num)
*seq_num = xsurf->client_stamp;
xsurf->drawable = drawable;
xsurf->visual = *xconf->visual;
/* initialize the geometry */
- ximage_surface_update_buffers(&xsurf->base, 0x0);
+ ximage_surface_update_geometry(&xsurf->base);
xsurf->xdraw.visual = xsurf->visual.visual;
xsurf->xdraw.depth = xsurf->visual.depth;