#include "Desk.Wimp.h"
#include "Desk.WimpSWIs.h"
#include "Desk.Icon.h"

extern void Desk_Icon_ForceWindowRedraw(Desk_window_handle window, Desk_icon_handle icon)
/*  Force Redraws the area of WINDOW surrounding the icon, *including*
 *  the 3-d border (validation string "b<bordertype>")
 *  This is a bit obsolete now, but is still included as it may be useful
 *  code to look at if you want to do similar stuff...
 */
{
  Desk_window_redrawblock r;
  Desk_icon_block         istate;

  Desk_Wimp_eGetIconState(window, icon, &istate);
  r.window    = window;
  r.rect.min.x = istate.workarearect.min.x - 4;
  r.rect.max.x = istate.workarearect.max.x + 4;
  r.rect.min.y = istate.workarearect.min.y - 4;
  r.rect.max.y = istate.workarearect.max.y + 4;
  Desk_Wimp_eForceRedraw(&r);
}
