Added better grouping for text markers with a separate group field (instead of using flags). The lower two bytes of the group are used for python scripts while the upper two (or more) are reserved for internal grouping. Plenty either way.

This commit is contained in:
2008-08-24 13:30:35 +00:00
parent d6a9f7f485
commit bf0803c0c2
6 changed files with 61 additions and 77 deletions

View File

@@ -708,7 +708,9 @@ static PyObject *Text_markSelection( BPy_Text * self, PyObject * args )
clr[2] = (char) (b&0xFF);
clr[3] = 255;
txt_add_marker(text, text->curl, text->curc, text->selc, clr, ((group+2)<<16)|flags);
group &= 0xFFFF;
txt_add_marker(text, text->curl, text->curc, text->selc, clr, group, flags);
Py_RETURN_NONE;
}