From babb77abcfe6bffe8393e1e710fad26a955b52bf Mon Sep 17 00:00:00 2001 From: rjc Date: Wed, 3 Jun 1998 17:32:56 +0000 Subject: [PATCH] Merging RDF_BRANCH onto tip. git-svn-id: svn://10.0.0.236/trunk@3071 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/lib/layout/layimage.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/mozilla/lib/layout/layimage.c b/mozilla/lib/layout/layimage.c index 4c72b4e3579..e5cf5a0a971 100644 --- a/mozilla/lib/layout/layimage.c +++ b/mozilla/lib/layout/layimage.c @@ -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