~ubuntu-branches/ubuntu/precise/xorg-server/precise-updates

« back to all changes in this revision

Viewing changes to miext/rootless/rootlessScreen.c

Tags: 2:1.10.1-2
* Build xserver-xorg-core-udeb on hurd-i386.  Thanks, Samuel Thibault!
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
    rowbytes = PixmapBytePad(pScreen->width, pScreen->rootDepth);
93
93
 
94
94
    if (s->pixmap_data_size < rowbytes) {
95
 
        if (s->pixmap_data != NULL)
96
 
            free(s->pixmap_data);
 
95
        free(s->pixmap_data);
97
96
 
98
97
        s->pixmap_data_size = rowbytes;
99
98
        s->pixmap_data = malloc(s->pixmap_data_size);
224
223
 *  here and leave StopDrawing for the block handler.
225
224
 */
226
225
static void
227
 
RootlessSourceValidate(DrawablePtr pDrawable, int x, int y, int w, int h)
 
226
RootlessSourceValidate(DrawablePtr pDrawable, int x, int y, int w, int h,
 
227
                       unsigned int subWindowMode)
228
228
{
229
229
    SCREEN_UNWRAP(pDrawable->pScreen, SourceValidate);
230
230
    if (pDrawable->type == DRAWABLE_WINDOW) {
232
232
        RootlessStartDrawing(pWin);
233
233
    }
234
234
    if (pDrawable->pScreen->SourceValidate) {
235
 
        pDrawable->pScreen->SourceValidate(pDrawable, x, y, w, h);
 
235
        pDrawable->pScreen->SourceValidate(pDrawable, x, y, w, h, subWindowMode);
236
236
    }
237
237
    SCREEN_WRAP(pDrawable->pScreen, SourceValidate);
238
238
}