|
@@ -1718,7 +1718,7 @@ JsonEditor::~JsonEditor()
|
|
|
|
|
|
|
|
void Framework::JSON::JsonEditor::doMouseEvent(MouseEvent& me, bool userRet)
|
|
void Framework::JSON::JsonEditor::doMouseEvent(MouseEvent& me, bool userRet)
|
|
|
{
|
|
{
|
|
|
- LOCK(&cs);
|
|
|
|
|
|
|
+ LOCK({&cs});
|
|
|
rend |= cursorPos.x != me.mx || cursorPos.y != me.my;
|
|
rend |= cursorPos.x != me.mx || cursorPos.y != me.my;
|
|
|
cursorPos.x = me.mx;
|
|
cursorPos.x = me.mx;
|
|
|
cursorPos.y = me.my;
|
|
cursorPos.y = me.my;
|
|
@@ -2113,7 +2113,7 @@ void Framework::JSON::JsonEditor::setValidator(
|
|
|
|
|
|
|
|
void Framework::JSON::JsonEditor::doKeyboardEvent(KeyboardEvent& te)
|
|
void Framework::JSON::JsonEditor::doKeyboardEvent(KeyboardEvent& te)
|
|
|
{
|
|
{
|
|
|
- LOCK(&cs);
|
|
|
|
|
|
|
+ LOCK({&cs});
|
|
|
if (!textCursor.line)
|
|
if (!textCursor.line)
|
|
|
{
|
|
{
|
|
|
return;
|
|
return;
|
|
@@ -2659,7 +2659,7 @@ void Framework::JSON::JsonEditor::doKeyboardEvent(KeyboardEvent& te)
|
|
|
|
|
|
|
|
bool Framework::JSON::JsonEditor::tick(double tickVal)
|
|
bool Framework::JSON::JsonEditor::tick(double tickVal)
|
|
|
{
|
|
{
|
|
|
- LOCK(&cs);
|
|
|
|
|
|
|
+ LOCK({&cs});
|
|
|
time += tickVal;
|
|
time += tickVal;
|
|
|
timeSicePress += tickVal;
|
|
timeSicePress += tickVal;
|
|
|
if (time > 1.0)
|
|
if (time > 1.0)
|
|
@@ -2676,7 +2676,7 @@ bool Framework::JSON::JsonEditor::tick(double tickVal)
|
|
|
|
|
|
|
|
void Framework::JSON::JsonEditor::render(Image& rObj)
|
|
void Framework::JSON::JsonEditor::render(Image& rObj)
|
|
|
{
|
|
{
|
|
|
- LOCK(&cs);
|
|
|
|
|
|
|
+ LOCK({&cs});
|
|
|
renderings++;
|
|
renderings++;
|
|
|
renderedLines = 0;
|
|
renderedLines = 0;
|
|
|
errorDescription->removeStyle(TextField::Style::Visible);
|
|
errorDescription->removeStyle(TextField::Style::Visible);
|