remove log of parser SVG and change comportment of image button

This commit is contained in:
Edouard Dupin 2012-06-20 18:17:01 +02:00
parent e9165ce89a
commit 4e271d2dcb
2 changed files with 8 additions and 8 deletions

View File

@ -176,20 +176,20 @@ void ewol::ButtonImage::OnRegenerateDisplay(void)
m_OOImage[m_currentCreateId] = new ewol::OObject2DTextured(m_image, tmpSizeX, tmpSizeY); m_OOImage[m_currentCreateId] = new ewol::OObject2DTextured(m_image, tmpSizeX, tmpSizeY);
} }
} }
float tmpval = 0.0;
if (NULL != m_OOImageBG2[m_currentCreateId]) { if (NULL != m_OOImageBG2[m_currentCreateId]) {
m_OOImageBG2[m_currentCreateId]->Clear(); m_OOImageBG2[m_currentCreateId]->Clear();
if( m_down == true if( m_down == true
|| m_over == true ) { || m_over == true ) {
m_OOImageBG2[m_currentCreateId]->Rectangle(tmpOriginX, tmpOriginY, tmpSizeX, tmpSizeY); m_OOImageBG2[m_currentCreateId]->Rectangle(tmpOriginX, tmpOriginY, tmpSizeX, tmpSizeY);
} }
} tmpval = tmpSizeX * 0.2;
float tmpval = tmpSizeX * 0.2;
tmpSizeX -= tmpval; tmpSizeX -= tmpval;
tmpOriginX += tmpval/2; tmpOriginX += tmpval/2;
tmpval = tmpSizeY * 0.2; tmpval = tmpSizeY * 0.2;
tmpSizeY -= tmpval; tmpSizeY -= tmpval;
tmpOriginY += tmpval/2; tmpOriginY += tmpval/2;
}
if (NULL != m_OOImageBg1[m_currentCreateId]) { if (NULL != m_OOImageBg1[m_currentCreateId]) {
m_OOImageBg1[m_currentCreateId]->Clear(); m_OOImageBg1[m_currentCreateId]->Clear();
m_OOImageBg1[m_currentCreateId]->Rectangle(tmpOriginX, tmpOriginY, tmpSizeX, tmpSizeY); m_OOImageBg1[m_currentCreateId]->Rectangle(tmpOriginX, tmpOriginY, tmpSizeX, tmpSizeY);

View File

@ -201,7 +201,7 @@ svg::Parser::Parser(etk::File fileName) : m_renderedElement(NULL)
if (NULL != fileBuffer) { if (NULL != fileBuffer) {
delete[] fileBuffer; delete[] fileBuffer;
} }
DisplayDebug(); //DisplayDebug();
} }
svg::Parser::~Parser(void) svg::Parser::~Parser(void)