unsigned char* buffer;
int size;
- wxPyBeginBlockThreads();
+ bool blocked = wxPyBeginBlockThreads();
if (!PyArg_Parse(data, "t#", &buffer, &size))
goto done;
}
self->SetData(buffer);
done:
- wxPyEndBlockThreads();
+ wxPyEndBlockThreads(blocked);
}
unsigned char* buffer;
int size;
- wxPyBeginBlockThreads();
+ bool blocked = wxPyBeginBlockThreads();
if (!PyArg_Parse(data, "t#", &buffer, &size))
goto done;
}
self->SetAlpha(buffer);
done:
- wxPyEndBlockThreads();
+ wxPyEndBlockThreads(blocked);
}
}