Jump to content

[SOLVED] WidgetSprite color changes on resolution change


photo

Recommended Posts

Below is the code for repro:

Gui gui;
WidgetSprite sprite;
Image img1;

int init()
{
  gui = engine.getGui();

  sprite = new WidgetSprite( gui );
  gui.addChild( sprite );

  img1 = new Image( "sprite_00.png" );

  sprite.setImage( img1 );
  sprite.setImage( img1 ); // IMPORTANT: This line is no mistake.

  return 1;
}

int shutdown()
{
  return 1;
}

int update()
{
  return 1;
}

 

Start the app in DirectX 9 mode ( not sure about others ) and then change the resolution using Unigine system menu.

Notice sprite's color change.

Link to comment
  • 3 weeks later...
×
×
  • Create New...