RemoteWindow::RemoteWindow(RemoteControl *remote_control)
: BC_Window(_(PROGRAM_NAME ": RemoteWindow"),
- 0, 0, 16, 16, -1, -1, 1, 0, 1)
+ 0, 0, xS(16), yS(16), -1, -1, 1, 0, 1)
{
this->remote_control = remote_control;
}
if( !handler ) handler = !mwindow_gui->record->running() ?
(RemoteHandler *)mwindow_gui->cwindow_remote_handler :
(RemoteHandler *)mwindow_gui->record_remote_handler ;
+ gui->lock_window("RemoteControl::activate");
gui->set_active(handler);
gui->set_color(handler->color);
gui->fill_color(handler->color);
+ gui->unlock_window();
result = 1;
}
active_lock->unlock();
}
RemoteGUI::RemoteGUI(BC_WindowBase *wdw, RemoteControl *remote_control)
- : BC_Popup(wdw, remote_control->mwindow_gui->mwindow->session->mwindow_x,0,16,16, -1, 1)
+ : BC_Popup(wdw, remote_control->mwindow_gui->mwindow->session->mwindow_x,0,
+ xS(16),yS(16), -1, 1)
{
this->remote_control = remote_control;
}