Skip to content

Commit

Permalink
ProcessorList: fix drag image rendering on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
anjaldoshi committed Sep 30, 2024
1 parent fcc44ae commit d3b827c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Source/UI/ProcessorList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,12 +457,15 @@ void ProcessorList::mouseDrag (const MouseEvent& e)

LOGA ("Processor List - ", listItem->getName(), " drag start.");

Graphics g (dragImage.getImage());
g.setColour (getLookAndFeel().findColour (listItem->colourId));
g.fillAll();
g.setColour (Colours::white);
g.setFont (FontOptions (14.0f));
g.drawSingleLineText (listItem->getName(), 10, 12);
// Draw the drag image
{
Graphics g (dragImage.getImage());
g.setColour (getLookAndFeel().findColour (listItem->colourId));
g.fillAll();
g.setColour (Colours::white);
g.setFont (FontOptions (14.0f));
g.drawSingleLineText (listItem->getName(), 10, 12);
}

dragImage.getImage().multiplyAllAlphas (0.6f);

Expand Down

0 comments on commit d3b827c

Please sign in to comment.