EMI: Over-draw some actors in Set::drawForeground

EMI draws portions of the background over actors
with sortOrder >= 15.
This commit is contained in:
Dries Harnie 2012-11-21 22:32:46 +01:00
parent 0d2089d5a1
commit bde37f96a8
10 changed files with 66 additions and 18 deletions

View file

@ -409,6 +409,14 @@ void Bitmap::draw(int x, int y) {
g_driver->drawBitmap(this, x, y);
}
void Bitmap::drawForeground() {
_data->load();
if (_currImage == 0)
return;
g_driver->drawBitmap(this, _data->_x, _data->_y, false);
}
void Bitmap::setActiveImage(int n) {
assert(n >= 0);
_data->load();