mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Changed the parameters to Graphics::fillCheckerBoard() to be floats rather than ints, and improved its performance
This commit is contained in:
parent
d727f2a35a
commit
d9585241ad
15 changed files with 47 additions and 47 deletions
|
|
@ -261,7 +261,7 @@ public:
|
|||
{
|
||||
const Colour c (owner.getSwatchColour (index));
|
||||
|
||||
g.fillCheckerBoard (getLocalBounds(), 6, 6,
|
||||
g.fillCheckerBoard (getLocalBounds().toFloat(), 6.0f, 6.0f,
|
||||
Colour (0xffdddddd).overlaidWith (c),
|
||||
Colour (0xffffffff).overlaidWith (c));
|
||||
}
|
||||
|
|
@ -430,9 +430,9 @@ void ColourSelector::paint (Graphics& g)
|
|||
|
||||
if ((flags & showColourAtTop) != 0)
|
||||
{
|
||||
const Colour currentColour (getCurrentColour());
|
||||
auto currentColour = getCurrentColour();
|
||||
|
||||
g.fillCheckerBoard (previewArea, 10, 10,
|
||||
g.fillCheckerBoard (previewArea.toFloat(), 10.0f, 10.0f,
|
||||
Colour (0xffdddddd).overlaidWith (currentColour),
|
||||
Colour (0xffffffff).overlaidWith (currentColour));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue