[Scummvm-devel] Re: [Scummvm-cvs-logs] CVS: scummvm/saga animation.cpp,1.60,1.61

Willem Jan Palenstijn palenstijn at planet.nl
Tue Sep 27 10:25:18 CEST 2005


On Tue, 2005-09-27 at 10:00 -0700, Torbjörn Andersson wrote:
> Update of /cvsroot/scummvm/scummvm/saga
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24664
> 
> Modified Files:
> 	animation.cpp 
> Log Message:
> This seems a bit awkward, but does keep GCC from warning about discarding
> constness.

'a bit'? ;-)


> -	_vm->_gfx->setPalette(palette);
> +	_vm->_gfx->setPalette(const_cast<PalEntry *>(palette));

Wouldn't it be better to just change saga's Gfx::setPalette to take a
'const PalEntry*' argument?

-Willem Jan







More information about the Scummvm-devel mailing list