Merging RDF_BRANCH onto tip.

git-svn-id: svn://10.0.0.236/trunk@3071 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rjc
1998-06-03 17:32:56 +00:00
parent ea6c9261ad
commit babb77abcf

View File

@@ -2604,6 +2604,10 @@ static void
lo_image_pixmap_update(MWContext *context, LO_ImageStruct *lo_image,
IL_Rect *update_rect)
{
#ifdef XP_WIN
IL_ImageReq *image_req = NULL; // See below at the end of the function.
#endif
/* This lo_image cannot correspond to an icon since we are receiving
pixmap update messages. */
lo_image->is_icon = FALSE;
@@ -2633,6 +2637,18 @@ lo_image_pixmap_update(MWContext *context, LO_ImageStruct *lo_image,
PR_TRUE); /* XXX FALSE on the final update? */
}
}
#ifdef XP_WIN
// This is a hack in the update event to allow RDF images to get updates
// even though they have no compositors in their contexts.
if (context->type == MWContextIcon)
{
image_req = lo_image->image_req;
if (image_req)
IL_DisplaySubImage(image_req, 0, 0, 0, 0, 1, 1); // Forces a DisplayPixmap update.
}
#endif
}
static void