const of GetZoom()

This commit is contained in:
dickelbeck 2008-03-21 19:26:12 +00:00
parent 57126e8394
commit 8f2e706853
1 changed files with 22 additions and 21 deletions

View File

@ -174,28 +174,30 @@ wxSize BASE_SCREEN::ReturnPageSize()
}
/********************************************/
void BASE_SCREEN::SetZoomList( int* zoomlist )
/********************************************/
/**************************************************/
void BASE_SCREEN::SetZoomList( const int* zoomlist )
/**************************************************/
/* init liste des zoom (NULL terminated)
*/
{
int ii, nbitems, * zoom;
int nbitems;
const int* zoom;
// Decompte des items
// get list length
for( nbitems = 1, zoom = zoomlist; ; zoom++, nbitems++ )
{
if( *zoom == 0 )
break;
}
// Init liste
// resize our list
if( m_ZoomList )
free( m_ZoomList );
m_ZoomList = (int*) MyZMalloc( nbitems * sizeof( int) );
m_ZoomList = (int*) MyZMalloc( nbitems * sizeof(int) );
int ii;
for( ii = 0, zoom = zoomlist; ii < nbitems; zoom++, ii++ )
{
m_ZoomList[ii] = *zoom;
@ -212,10 +214,9 @@ void BASE_SCREEN::SetFirstZoom()
}
/****************************/
int BASE_SCREEN::GetZoom()
/****************************/
/* retourne le coeff de zoom */
/******************************/
int BASE_SCREEN::GetZoom() const
/******************************/
{
return m_Zoom;
}