# Subtle drawing bug(?) -\> fillRect (integer version) scaled

**URL:** <https://forum.juce.com/t/subtle-drawing-bug-fillrect-integer-version-scaled/23665>\
**Category:** General JUCE discussion\
**Created:** [August 9, 2017, 8:27am UTC](https://forum.juce.com/t/subtle-drawing-bug-fillrect-integer-version-scaled/23665 "2017-08-09T08:27:20Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [August 18, 2022, 2:23pm UTC](https://forum.juce.com/t/subtle-drawing-bug-fillrect-integer-version-scaled/23665/7 "2022-08-18T14:23:43Z")

</div>

Because I think this is still an issue, here a simple demo to reproduce the issue

The code will render differently on Mac and Windows (both with same physical pixel scales).

![Differences](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/3/3e5296daa6e92edf5b2975c9bf282c9986a0b198.png)

```auto
class BoxDemo : public juce::Component
{
public:
    BoxDemo() { setTransform (juce::AffineTransform::scale (1.33)); }

    void paint (juce::Graphics& g)
    {
        g.fillAll (juce::Colours::white);
        g.setColour (juce::Colours::black);
        g.fillRect (10, 2, 2, 2);
        g.fillRect (20.f, 2.f, 2.f, 2.f);
    }
};

```

---

_[View the full topic](https://forum.juce.com/t/subtle-drawing-bug-fillrect-integer-version-scaled/23665)._
