mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-20 01:14:20 +00:00
ScaledImage: Use in a few more places
This commit is contained in:
parent
34fdea0708
commit
03428561ed
10 changed files with 42 additions and 28 deletions
|
|
@ -674,7 +674,9 @@ public:
|
|||
private:
|
||||
static Cursor makeHandle (const CustomMouseCursorInfo& info)
|
||||
{
|
||||
return XWindowSystem::getInstance()->createCustomMouseCursorInfo (info.image, info.hotspot);
|
||||
const auto image = info.image.getImage();
|
||||
return XWindowSystem::getInstance()->createCustomMouseCursorInfo (image.rescaled ((int) (image.getWidth() / info.image.getScale()),
|
||||
(int) (image.getHeight() / info.image.getScale())), info.hotspot);
|
||||
}
|
||||
|
||||
static Cursor makeHandle (MouseCursor::StandardCursorType type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue