CComponents: use paintBoxRel() only in kill()

paintBackgroundBoxRel() ignores rounded corners. This avoids painting of
undesirable parts on corners.


Origin commit data
------------------
Branch: ni/coolstream
Commit: dc007e810a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-18 (Sun, 18 May 2014)



------------------
This commit was generated by Migit
This commit is contained in:
2014-05-18 21:49:07 +02:00
parent f4dcb577de
commit 8bbea0b762
3 changed files with 14 additions and 7 deletions

View File

@@ -204,7 +204,7 @@ class CComponents
///erase or paint over rendered objects without restore of background, it's similar to paintBackgroundBoxRel() known
///from CFrameBuffer but with possiblity to define color, default color is COL_BACKGROUND (empty background)
virtual void kill(const fb_pixel_t& bg_color = COL_BACKGROUND);
virtual void kill(const fb_pixel_t& bg_color = COL_BACKGROUND, const int& corner_radius = -1);
///returns paint mode, true=item was painted
virtual bool isPainted(){return is_painted;}