command_mutex.lock();
- VectorHandle ref = osd->getStyleRef(c);
+ VectorHandle ref;
float* charwidtharray = osd->getCharWidthArray();
int commands_size = commands.size();
int chars = 0;
while (num_bytes != ((size_t) -1) && num_bytes != ((size_t) -2) && length > 0)
{
+ ref = osd->getStyleRef(c); // Need to call this each time to have OSD get the ref count right. Maybe expose incRefCount sometime
SVGCommand::PaintGlyph(commands[commands_size + chars], x + shift, y, tempo, ref);
chars++;
for (int i = 0; i < real_length; i++)
{
+ ref = osd->getStyleRef(c); // Need to call this each time to have OSD get the ref count right. Maybe expose incRefCount sometime
SVGCommand::PaintGlyph(commands[commands_size + chars], x + shift, y, temptext[i], ref);
chars++;