# fillRectList oddity macOS

**URL:** <https://forum.juce.com/t/fillrectlist-oddity-macos/41400>\
**Category:** Audio Plugins\
**Created:** [August 24, 2020, 11:48am UTC](https://forum.juce.com/t/fillrectlist-oddity-macos/41400 "2020-08-24T11:48:32Z")\
**Posts on this page:** 3\
**Page:** 1

<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 24, 2020, 11:48am UTC](https://forum.juce.com/t/fillrectlist-oddity-macos/41400/1 "2020-08-24T11:48:32Z")

</div>

fillRectList has this amazing behaviour, the ability to join adjacent blocks together (without using paths!), which also works when the whole context is scaled.

This is what it looks like when using a context scaling of 1.25

The non-scaled coordinates, are on integer values next to each other.

On the top, 3 rectangles drawn separately via fillRect  
On the bottom, 3 rectangles drown via fillRectList

On Windows with the Software Renderer

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/2/2977cd68bde55f09b2ba5362a9846eef159826ea.png)

Build with XCode 9.4 and JUCE 4 with CoreGraphics

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/8/88e5f83e3907bff14d5ff423453d16220ec222a2.png)

And then, this is how it looks like with latest Xcode and Juce 6 and CoreGraphics  
The problem, the blocks are not merged together, as you see.  
What could cause the problem?  
It looks like the CoreGraphics code hasn’t substantially changed?!

![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/4/4bb5e5666f0652f47b6eda26b042edff4f931a24.png)

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [August 26, 2020, 11:19am UTC](https://forum.juce.com/t/fillrectlist-oddity-macos/41400/2 "2020-08-26T11:19:43Z")

</div>

It could well be that something has changed in CoreGraphics, rather than JUCE itself. Have you tried an older Xcode/macOS SDK with the latest JUCE?

---

<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 26, 2020, 12:42pm UTC](https://forum.juce.com/t/fillrectlist-oddity-macos/41400/3 "2020-08-26T12:42:06Z")

</div>

> [@ed95](#):
>
> something has changed in CoreGraphics

Thanks, i guess that too, the probably changed from some kind of scan-line based algorithm (like juce software renderer), to something which easier to accelerate.  
(I guess thats why also the internal retina scaling is always by done by integer factors, and than optional downsampled by fractional numbers)
