This commit is contained in:
rjc 1998-06-03 17:32:56 +00:00
Родитель 46e05ffd0d
Коммит 590cc187dc
1 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -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