Skip to content

Commit

Permalink
ACCESS: Fix item Z ordering issue causing flickering in airplane rear…
Browse files Browse the repository at this point in the history
… scene
  • Loading branch information
dreammaster committed Dec 13, 2014
1 parent a97bbb8 commit fa46257
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/access/asurface.cpp
Expand Up @@ -87,7 +87,8 @@ ImageEntry::ImageEntry() {
/*------------------------------------------------------------------------*/

static bool sortImagesY(const ImageEntry &ie1, const ImageEntry &ie2) {
return (ie1._position.y + ie1._offsetY) < (ie2._position.y + ie2._offsetY);
int v = (ie1._position.y + ie1._offsetY) - (ie2._position.y + ie2._offsetY);
return (v < 0) || (v == 0 && ie1._position.y <= ie2._position.y);
}

void ImageEntryList::addToList(ImageEntry &ie) {
Expand Down

0 comments on commit fa46257

Please sign in to comment.