mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
Littlefoot: NOISE Lightpad script support for gamma correction
This commit is contained in:
parent
92545f9deb
commit
cfd8a7203e
1 changed files with 6 additions and 1 deletions
|
|
@ -566,11 +566,16 @@ juce::String DrumPadGridProgram::getLittleFootProgramPost25() const
|
|||
int dimDelay;
|
||||
int slideAnimationProgress;
|
||||
int lastVisiblePads;
|
||||
bool gammaCorrected;
|
||||
|
||||
void initialise()
|
||||
{
|
||||
for (int i = 0; i < 32; ++i)
|
||||
setLocalConfigActiveState (i, true, true);
|
||||
|
||||
// Enable gamma correction if supported on hardware
|
||||
setLocalConfig (33, 1);
|
||||
gammaCorrected = getLocalConfig (33) > 0;
|
||||
}
|
||||
|
||||
int getGridColour (int index, int colourMapOffset)
|
||||
|
|
@ -738,7 +743,7 @@ juce::String DrumPadGridProgram::getLittleFootProgramPost25() const
|
|||
}
|
||||
else
|
||||
{
|
||||
dimFactor = 180;
|
||||
dimFactor = gammaCorrected ? 100 : 180;
|
||||
dimDelay = 12;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue