mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-04 14:14:17 -04:00
RGBController API changes and segment configuration updates
* Make the Get/Set RGBControler descriptor functions static * Add functions for getting the matrix_map_type for zone and segment matrix maps * Rename zone resize dialog to zone editor dialog * Add additional segment types * Add option to import segments configuration from JSON file in zone editor dialog * Update device view to be able to display matrix segment types * Add matrix map editor dialog for creating/editing segment matrix maps * Add option to export segments configuration to JSON file in zone editor dialog
This commit is contained in:
@@ -1194,7 +1194,7 @@ void NetworkClient::ProcessReply_ControllerData(unsigned int data_size, char * d
|
||||
\*-------------------------------------------------*/
|
||||
RGBController_Network * new_controller = new RGBController_Network(this, dev_id);
|
||||
|
||||
new_controller->SetDeviceDescription((unsigned char *)data, GetProtocolVersion());
|
||||
RGBController::SetDeviceDescription((unsigned char *)data, new_controller, GetProtocolVersion());
|
||||
|
||||
/*-------------------------------------------------*\
|
||||
| Mark this controller as remote owned |
|
||||
@@ -1459,7 +1459,7 @@ void NetworkClient::ProcessRequest_RGBController_SignalUpdate(unsigned int data_
|
||||
| UpdateLEDs() sends color description |
|
||||
\*-------------------------------------------------*/
|
||||
case RGBCONTROLLER_UPDATE_REASON_UPDATELEDS:
|
||||
controller->SetColorDescription((unsigned char *)data_ptr, GetProtocolVersion());
|
||||
RGBController::SetColorDescription((unsigned char *)data_ptr, controller, GetProtocolVersion());
|
||||
break;
|
||||
|
||||
/*-------------------------------------------------*\
|
||||
@@ -1474,7 +1474,7 @@ void NetworkClient::ProcessRequest_RGBController_SignalUpdate(unsigned int data_
|
||||
case RGBCONTROLLER_UPDATE_REASON_HIDDEN:
|
||||
case RGBCONTROLLER_UPDATE_REASON_UNHIDDEN:
|
||||
default:
|
||||
controller->SetDeviceDescription((unsigned char *)data_ptr, GetProtocolVersion());
|
||||
RGBController::SetDeviceDescription((unsigned char *)data_ptr, controller, GetProtocolVersion());
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user