Skip to content

Commit

Permalink
Fix mixed up button states from 2461f42
Browse files Browse the repository at this point in the history
  • Loading branch information
bradallred committed Dec 24, 2013
1 parent 4401941 commit 40892ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gemrb/plugins/GUIScript/GUIScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2375,9 +2375,9 @@ static PyObject* GemRB_Button_SetSprites(PyObject * /*self*/, PyObject* args)
return RuntimeError( tmpstr );
}
Sprite2D *tspr = af->GetFrame(unpressed, (unsigned char)cycle);
btn->SetImage( BUTTON_IMAGE_PRESSED, tspr );
tspr = af->GetFrame( pressed, (unsigned char) cycle);
btn->SetImage( BUTTON_IMAGE_UNPRESSED, tspr );
tspr = af->GetFrame( pressed, (unsigned char) cycle);
btn->SetImage( BUTTON_IMAGE_PRESSED, tspr );
tspr = af->GetFrame( selected, (unsigned char) cycle);
btn->SetImage( BUTTON_IMAGE_SELECTED, tspr );
tspr = af->GetFrame( disabled, (unsigned char) cycle);
Expand Down

0 comments on commit 40892ef

Please sign in to comment.