mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-01-23 20:05:29 +01:00
Fix bug introduced in previous commit.
When in low quality mode, changing from a forced high quality filter to a low-quality one (or none) didn't reset the high-quality filter...
This commit is contained in:
@@ -89,18 +89,11 @@ public final class LayeredTileMap {
|
||||
}
|
||||
|
||||
public boolean setColorFilter(Paint mPaint, Paint alternateColorFilterPaint, boolean highQuality) {
|
||||
if (highQuality) {
|
||||
mPaint.setColorFilter(getColorFilter());
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
if (setColor(alternateColorFilterPaint)) {
|
||||
return true;
|
||||
} else {
|
||||
mPaint.setColorFilter(getColorFilter());
|
||||
return false;
|
||||
}
|
||||
if (!highQuality) {
|
||||
highQuality = !setColor(alternateColorFilterPaint);
|
||||
}
|
||||
mPaint.setColorFilter(highQuality ? getColorFilter() : null);
|
||||
return !highQuality;
|
||||
}
|
||||
|
||||
public ColorFilter getColorFilter() {
|
||||
|
||||
Reference in New Issue
Block a user