mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-31 11:01:40 +00:00
Merging RDF_BRANCH onto tip.
This commit is contained in:
parent
46e05ffd0d
commit
590cc187dc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user