mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 01:46:42 +00:00
Merge pull request #1193 from chkr-private/textobject-draw-order-fixes
EMI: Correct draw order of textobjects
This commit is contained in:
commit
f0098e268f
@ -268,7 +268,14 @@ void EMIEngine::invalidateSortOrder() {
|
||||
}
|
||||
|
||||
bool EMIEngine::compareTextLayer(const TextObject *x, const TextObject *y) {
|
||||
return x->getLayer() < y->getLayer();
|
||||
int xl = x->getLayer();
|
||||
int yl = y->getLayer();
|
||||
|
||||
if (xl == yl) {
|
||||
return x->getId() < y->getId();
|
||||
} else {
|
||||
return xl < yl;
|
||||
}
|
||||
}
|
||||
|
||||
bool EMIEngine::compareLayer(const Layer *x, const Layer *y) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user