1
0
Fork 0
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:
reuk 2021-11-25 18:14:31 +00:00
parent 34fdea0708
commit 03428561ed
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
10 changed files with 42 additions and 28 deletions

View file

@ -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)