Avoid useless graphics exposure events from imlib_create_scaled_image_from_drawable().

SVN revision: 19324
This commit is contained in:
Kim Woelders 2005-12-27 22:36:25 +00:00
parent 032e280c20
commit a7074466ac
1 changed files with 5 additions and 2 deletions

View File

@ -2208,15 +2208,18 @@ imlib_create_scaled_image_from_drawable(Pixmap mask, int source_x,
source_height, ctx->depth);
gcv.foreground = 0;
gcv.subwindow_mode = IncludeInferiors;
gcv.graphics_exposures = False;
if (domask)
{
m = XCreatePixmap(ctx->display, ctx->drawable, destination_width,
source_height, 1);
mgc = XCreateGC(ctx->display, m, GCForeground, &gcv);
mgc = XCreateGC(ctx->display, m,
GCForeground | GCGraphicsExposures, &gcv);
}
else
m = None;
gc = XCreateGC(ctx->display, ctx->drawable, GCSubwindowMode, &gcv);
gc = XCreateGC(ctx->display, ctx->drawable,
GCSubwindowMode | GCGraphicsExposures, &gcv);
if ((domask) && (!mask))
{
XRectangle *rect;