# include "Ximage.h"

void InvertButton (Graphic *graphic, Button *button) {

  unsigned long black, white;

  black =  graphic[0].black;
  white =  graphic[0].white;

  graphic[0].black = white;
  graphic[0].white = black;

  DrawButton (graphic, button);
  FlushDisplay (graphic[0].display);
  
  graphic[0].black = black;
  graphic[0].white = white;

}

