erase.c 752 B

12345678910111213141516171819202122232425262728293031323334
  1. /*!
  2. \file lib/cairodriver/erase.c
  3. \brief GRASS cairo display driver - erase screen
  4. (C) 2007-2008 by Lars Ahlzen and the GRASS Development Team
  5. This program is free software under the GNU General Public License
  6. (>=v2). Read the file COPYING that comes with GRASS for details.
  7. \author Lars Ahlzen <lars ahlzen.com> (original contibutor)
  8. \author Glynn Clements
  9. */
  10. #include "cairodriver.h"
  11. /*!
  12. \brief Erase screen
  13. */
  14. void Cairo_Erase(void)
  15. {
  16. G_debug(1, "Cairo_Erase");
  17. cairo_save(cairo);
  18. cairo_set_source_rgba(cairo, ca.bgcolor_r, ca.bgcolor_g, ca.bgcolor_b, ca.bgcolor_a);
  19. cairo_set_operator(cairo, CAIRO_OPERATOR_SOURCE);
  20. cairo_paint(cairo);
  21. cairo_restore(cairo);
  22. ca.modified = 1;
  23. return;
  24. }