Remove SetCustomMode from all controllers beginning with the letter M

This commit is contained in:
Adam Honse 2022-08-14 18:49:33 -05:00
parent 69f916c389
commit 9caf7802ed
14 changed files with 18 additions and 86 deletions

View file

@ -113,11 +113,6 @@ void RGBController_MSI3Zone::UpdateSingleLED(int /*led*/)
controller->SetLEDs(colors);
}
void RGBController_MSI3Zone::SetCustomMode()
{
}
void RGBController_MSI3Zone::DeviceUpdateMode()
{

View file

@ -25,7 +25,6 @@ public:
void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led);
void SetCustomMode();
void DeviceUpdateMode();
private:

View file

@ -420,11 +420,6 @@ void RGBController_MSIGPU::UpdateSingleLED(int /*led*/)
DeviceUpdateLEDs();
}
void RGBController_MSIGPU::SetCustomMode()
{
active_mode = 2; //Set to MSI_GPU_MODE_STATIC
}
void RGBController_MSIGPU::DeviceUpdateMode()
{
if (modes[active_mode].flags & MODE_FLAG_HAS_BRIGHTNESS)

View file

@ -17,14 +17,12 @@ public:
~RGBController_MSIGPU();
void SetupZones();
void ResizeZone(int zone, int new_size);
void DeviceUpdateLEDs();
void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led);
void SetCustomMode();
void DeviceUpdateMode();
void DeviceSaveMode();

View file

@ -159,11 +159,6 @@ void RGBController_MSIMysticLight162::ResizeZone
{
}
void RGBController_MSIMysticLight162::SetCustomMode()
{
active_mode = 0;
}
void RGBController_MSIMysticLight162::DeviceUpdateLEDs()
{
for(std::size_t zone_idx = 0; zone_idx < zones.size(); ++zone_idx)

View file

@ -15,31 +15,16 @@
class RGBController_MSIMysticLight162: public RGBController
{
public:
RGBController_MSIMysticLight162
(
MSIMysticLight162Controller* controller_ptr
);
RGBController_MSIMysticLight162(MSIMysticLight162Controller* controller_ptr);
~RGBController_MSIMysticLight162();
void SetupZones();
void ResizeZone
(
int zone,
int new_size
);
void ResizeZone(int zone, int new_size);
void DeviceUpdateLEDs();
void UpdateZoneLEDs
(
int zone
);
void UpdateSingleLED
(
int led
);
void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led);
void SetCustomMode();
void DeviceUpdateMode();
void DeviceSaveMode();

View file

@ -219,11 +219,6 @@ void RGBController_MSIMysticLight185::ResizeZone
}
}
void RGBController_MSIMysticLight185::SetCustomMode()
{
active_mode = 0;
}
void RGBController_MSIMysticLight185::DeviceUpdateLEDs()
{
for(std::size_t zone_idx = 0; zone_idx < zones.size(); ++zone_idx)

View file

@ -16,31 +16,16 @@
class RGBController_MSIMysticLight185: public RGBController
{
public:
RGBController_MSIMysticLight185
(
MSIMysticLight185Controller* controller_ptr
);
RGBController_MSIMysticLight185(MSIMysticLight185Controller* controller_ptr);
~RGBController_MSIMysticLight185();
void SetupZones();
void ResizeZone
(
int zone,
int new_size
);
void ResizeZone(int zone, int new_size);
void DeviceUpdateLEDs();
void UpdateZoneLEDs
(
int zone
);
void UpdateSingleLED
(
int led
);
void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led);
void SetCustomMode();
void DeviceUpdateMode();
void DeviceSaveMode();

View file

@ -382,11 +382,6 @@ void RGBController_MSIOptix::UpdateSingleLED(int led)
UpdateZoneLEDs(led);
}
void RGBController_MSIOptix::SetCustomMode()
{
active_mode = 0;
}
void RGBController_MSIOptix::DeviceUpdateMode()
{
if(modes[active_mode].flags & MODE_FLAG_HAS_PER_LED_COLOR)

View file

@ -20,11 +20,12 @@ public:
void SetupZones();
void ResizeZone(int zone, int new_size);
void DeviceUpdateLEDs();
void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led);
void DeviceUpdateMode();
void SetCustomMode();
private:
MSIOptixController* controller;

View file

@ -19,9 +19,9 @@
@comment
\*-------------------------------------------------------------------*/
RGBController_MSIRGB::RGBController_MSIRGB(MSIRGBController* msi_ptr)
RGBController_MSIRGB::RGBController_MSIRGB(MSIRGBController* controller_ptr)
{
msi = msi_ptr;
controller = controller_ptr;
name = "MSI Motherboard";
vendor = "MSI";
@ -40,7 +40,7 @@ RGBController_MSIRGB::RGBController_MSIRGB(MSIRGBController* msi_ptr)
RGBController_MSIRGB::~RGBController_MSIRGB()
{
delete msi;
delete controller;
}
void RGBController_MSIRGB::SetupZones()
@ -73,7 +73,7 @@ void RGBController_MSIRGB::DeviceUpdateLEDs()
unsigned char grn = RGBGetGValue(color);
unsigned char blu = RGBGetBValue(color);
msi->SetColor(red, grn, blu);
controller->SetColor(red, grn, blu);
}
void RGBController_MSIRGB::UpdateZoneLEDs(int /*zone*/)
@ -86,11 +86,6 @@ void RGBController_MSIRGB::UpdateSingleLED(int /*led*/)
DeviceUpdateLEDs();
}
void RGBController_MSIRGB::SetCustomMode()
{
}
void RGBController_MSIRGB::DeviceUpdateMode()
{

View file

@ -13,20 +13,18 @@
class RGBController_MSIRGB : public RGBController
{
public:
RGBController_MSIRGB(MSIRGBController* msi_ptr);
RGBController_MSIRGB(MSIRGBController* controller_ptr);
~RGBController_MSIRGB();
void SetupZones();
void ResizeZone(int zone, int new_size);
void DeviceUpdateLEDs();
void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led);
void SetCustomMode();
void DeviceUpdateMode();
private:
MSIRGBController* msi;
MSIRGBController* controller;
};

View file

@ -195,11 +195,6 @@ void RGBController_MSIVigorGK30::UpdateSingleLED(int /*led*/)
);
}
void RGBController_MSIVigorGK30::SetCustomMode()
{
active_mode = 0;
}
void RGBController_MSIVigorGK30::DeviceUpdateMode()
{
DeviceUpdateLEDs();

View file

@ -20,11 +20,12 @@ public:
void SetupZones();
void ResizeZone(int zone, int new_size);
void DeviceUpdateLEDs();
void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led);
void DeviceUpdateMode();
void SetCustomMode();
private:
MSIVigorGK30Controller* controller;