summaryrefslogtreecommitdiff
path: root/dxr3colormanager.c
diff options
context:
space:
mode:
Diffstat (limited to 'dxr3colormanager.c')
-rw-r--r--dxr3colormanager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dxr3colormanager.c b/dxr3colormanager.c
index 1e40711..56f38ea 100644
--- a/dxr3colormanager.c
+++ b/dxr3colormanager.c
@@ -231,7 +231,7 @@ unsigned char cColorManager::AddColor(int x, int y, unsigned char color,
if (!curSection->HasColor(color, ColorIndex))
{
// this color is new for this section
- if (curSection->AllColorsUsed())
+ if (curSection->AllColorsUsed(curRegion->Y1==y))
{
// no more free colors
if (y != curRegion->Y1)