clang compilation and test bg

This commit is contained in:
Edouard Dupin 2012-06-18 18:02:16 +02:00
parent 4f62af618d
commit 8f8aaef01e
4 changed files with 9 additions and 7 deletions

View File

@ -1364,8 +1364,8 @@ namespace agg
//--------------------------------------------------------------------- //---------------------------------------------------------------------
void profile(const line_profile_aa& prof) { m_profile = &prof; } void profile(const line_profile_aa& prof) { m_profile = &prof; }
const line_profile_aa& profile() const { return *m_profile; } const line_profile_aa& profile(void) const { return *m_profile; }
line_profile_aa& profile() { return *m_profile; } //line_profile_aa& profile(void) { return *m_profile; } // generate CLANG error
//--------------------------------------------------------------------- //---------------------------------------------------------------------
int subpixel_width() const { return m_profile->subpixel_width(); } int subpixel_width() const { return m_profile->subpixel_width(); }

View File

@ -458,13 +458,13 @@ namespace agg
class scanline32_u8_am : public scanline32_u8 class scanline32_u8_am : public scanline32_u8
{ {
public: public:
typedef scanline_u8 base_type; typedef scanline32_u8 base_type;
typedef AlphaMask alpha_mask_type; typedef AlphaMask alpha_mask_type;
typedef base_type::cover_type cover_type; typedef base_type::cover_type cover_type;
typedef base_type::coord_type coord_type; typedef base_type::coord_type coord_type;
scanline32_u8_am(void) : scanline_u8(), m_alpha_mask(0) {} scanline32_u8_am(void) : base_type(), m_alpha_mask(0) {}
scanline32_u8_am(const AlphaMask& am) : base_type(), m_alpha_mask(&am) {} scanline32_u8_am(const AlphaMask& am) : base_type(), m_alpha_mask(&am) {}
//-------------------------------------------------------------------- //--------------------------------------------------------------------

View File

@ -124,6 +124,7 @@ void ewol::Scene::OnRegenerateDisplay(void)
//TODO : Il y a un bug : seg fault ... je ne sais pas trop ou ... //TODO : Il y a un bug : seg fault ... je ne sais pas trop ou ...
void ewol::Scene::OnDraw(void) void ewol::Scene::OnDraw(void)
{ {
m_basicBackground.Draw();
//EWOL_ERROR(" On draw : " << m_currentDrawId); //EWOL_ERROR(" On draw : " << m_currentDrawId);
// draw elements // draw elements
for (int32_t iii=0; iii<m_sceneElement.animated[m_currentDrawId].Size(); iii++) { for (int32_t iii=0; iii<m_sceneElement.animated[m_currentDrawId].Size(); iii++) {

View File

@ -40,6 +40,7 @@ namespace ewol {
SceneElement m_sceneElement; //!< all element neede in the scene SceneElement m_sceneElement; //!< all element neede in the scene
bool m_isRunning; bool m_isRunning;
int64_t m_lastCallTime; int64_t m_lastCallTime;
ewol::OObject2DColored m_basicBackground;
public: public:
Scene(void); Scene(void);
virtual ~Scene(void); virtual ~Scene(void);