We moved from 9 to 11 last year.
This has introduced some strange issues with code generation (Something that has been in the project for some years):
if ( aState.contains( Core::ViewState[ Enabled ]) && !this.DrawDisabledOnly)
{
this.InfoText.Opacity = 255;
this.Icon.Opacity = 255;
}
else
{
this.InfoText.Opacity = 255;
this.Icon.Opacity = 255;
this.InfoText.Color = XColours::DisabledTileTextIconColour;
this.Icon.Color = XColours::DisabledTileTextIconColour;
}
V11 produces this:
{
/* Dummy expressions to avoid the 'C' warning 'unused argument'. */
EW_UNUSED_ARG( aState );
ViewsText_OnSetOpacity( &_this->Super1.InfoText, 255 );
ViewsImage_OnSetOpacity( &_this->Super1.Icon, 255 );
}
V9 produced this:
if ((( aState & CoreViewStateEnabled ) == CoreViewStateEnabled ) && !_this->Super1.DrawDisabledOnly )
{
ViewsText_OnSetOpacity( &_this->Super1.InfoText, 255 );
ViewsImage_OnSetOpacity( &_this->Super1.Icon, 255 );
}
else
{
ViewsText_OnSetOpacity( &_this->Super1.InfoText, 255 );
ViewsImage_OnSetOpacity( &_this->Super1.Icon, 255 );
ViewsText_OnSetColor( &_this->Super1.InfoText, xColoursDisabledTileTextIconColour );
ViewsImage_OnSetColor( &_this->Super1.Icon, xColoursDisabledTileTextIconColour );
}
It runs OK in the simulator, but windows and target code is wrong and it works differently.
I can modify this to make it generate what I want, but it is a little concerning that changing versions has created issues.