# \[BR\] regression in macOS rendering in JUCE 7.0.6

**URL:** <https://forum.juce.com/t/br-regression-in-macos-rendering-in-juce-7-0-6/57292>\
**Category:** MacOSX and iOS\
**Created:** [August 3, 2023, 3:26pm UTC](https://forum.juce.com/t/br-regression-in-macos-rendering-in-juce-7-0-6/57292 "2023-08-03T15:26:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yfede](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/yfede/32/506_2.png) [@yfede](https://forum.juce.com/u/yfede)\
**Post date:** [August 3, 2023, 3:26pm UTC](https://forum.juce.com/t/br-regression-in-macos-rendering-in-juce-7-0-6/57292/1 "2023-08-03T15:26:10Z")

</div>

After updating to JUCE 7.0.6, I have found that the rendering of some aspects of my UI are noticeably degraded when compared with JUCE 7.0.5 master.

For example, the following Drawable loaded from an SVG appears noticeably “thinner” in JUCE 7.0.6, whereas its expected look is the one rendered by JUCE 7.0.5.

Before (JUCE 7.0.5):  
 ![good](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/c/0/c08f172bc562990c8144f2eea2fa3aa0ad7e6dac.png)

After (JUCE 7.0.6):  
 ![bad](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/e/b/ebf98a82bd9b65279a01030c75a8e340dfb9f3a3.png)

With git bisect, I have found that the change happens because of this commit:

> <https://github.com/juce-framework/JUCE/commit/3894fdbe5f0765c117871d3a948d8872dcc3aed5>

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/5/9/5988b4fa19fbd15238ac8507b61c0365cb706190.png)

For reproduction, attached is the SVG file. The images above are obtained rendering it inside an DrawableButton (ImageFitted), 30x30 in size, with an edge indent of 6, on a non-retina display.

[drawable.svg.zip](https://forum.juce.com/uploads/short-url/4YaiQs8qjgHgXu1OGJDBtHWEIhG.zip) (1.1 KB)

---

<div class="post-metadata">

**Author:** ![stephenk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/stephenk/32/15198_2.png) [@stephenk](https://forum.juce.com/u/stephenk)\
**Post date:** [August 7, 2023, 6:56pm UTC](https://forum.juce.com/t/br-regression-in-macos-rendering-in-juce-7-0-6/57292/2 "2023-08-07T18:56:07Z")

</div>

I can confirm this regression in my projects; I use SVGs with text and lines for many parts of my GUI; they are rendering thinner and less accurately. This is a big problem, I hope someone from the JUCE team can comment. Removing that small change does indeed make it go back to how it was. This is blown up 400%:

 ![svg](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/f/b/fbe42b1c2a6747f9aa597b7b2cb1dc08f0de070e.png)

Take a look at the"tails" of the note flags…

Another example - some toolbar buttons (zoomed in):

 ![svg2](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/9/6/96d7dff858ec745ae287b71d5a19609e8369a7ed.png)

---

<div class="post-metadata">

**Author:** ![ttg](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ttg/32/14456_2.png) [@ttg](https://forum.juce.com/u/ttg)\
**Post date:** [August 8, 2023, 6:14am UTC](https://forum.juce.com/t/br-regression-in-macos-rendering-in-juce-7-0-6/57292/3 "2023-08-08T06:14:41Z")

</div>

I’ve reported this on several locations already but guess it was considered minor by the JUCE to team over the bug fixes in 7.0.6.

> <https://github.com/juce-framework/JUCE/issues/1247>
>
> \### Detailed steps on how to reproduce the bug
> 
> I'm logging this also on GitHu…b as it seems this regression will make it to the next major JUCE release. but it is a regression since current master...
> 
> The entire report with steps to reproduce:
> 
> https://forum.juce.com/t/reduceclipregion-and-fillrectlist-results-in-broken-drawing-on-macos/56051/8?u=ttg
> https://github.com/juce-framework/JUCE/commit/8ed3618e12230ad8563098e1f17575239497b127
> 
> \### What is the expected behaviour?
> 
> Graphics should draw correctly as in previous JUCE code-base.
> 
> \### Operating systems
> 
> macOS
> 
> \### What versions of the operating systems?
> 
> Tested under:
> \- macOS Ventura
> \- macOS Monterey
> 
> \### Architectures
> 
> x86\_64, ARM
> 
> \### Stacktrace
> 
> \_No response\_
> 
> \### Plug-in formats (if applicable)
> 
> \_No response\_
> 
> \### Plug-in host applications (DAWs) (if applicable)
> 
> \_No response\_
> 
> \### Testing on the \`develop\` branch
> 
> The bug is present on the \`develop\` branch
> 
> \### Code of Conduct
> 
> \- \[X\] I agree to follow the Code of Conduct

---

<div class="post-metadata">

**Author:** ![op414](https://avatars.discourse-cdn.com/v4/letter/o/76d3ee/32.png) [@op414](https://forum.juce.com/u/op414)\
**Post date:** [August 23, 2023, 11:39am UTC](https://forum.juce.com/t/br-regression-in-macos-rendering-in-juce-7-0-6/57292/4 "2023-08-23T11:39:49Z")

</div>

Hello, I’m affected by this as well, happy to see that I was not the only one to notice!  
This is very visible when you have thin lines, the Projucer is affected as well!

 ![Screenshot 2023-08-23 at 12.15.45](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/1/a/1a99b8268999a66244e015c41c4ba28f8ca7c368.png)  
 ![Screenshot 2023-08-23 at 12.12.53](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/8/c/8c1bd815c25e5085eeefbdcaa0545c741e052c3c.png)

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [August 23, 2023, 1:15pm UTC](https://forum.juce.com/t/br-regression-in-macos-rendering-in-juce-7-0-6/57292/5 "2023-08-23T13:15:08Z")

</div>

This is fixed in 7.0.7:

> [@reduceClipRegion and fillRectList results in broken drawing on macOS](https://forum.juce.com/t/reduceclipregion-and-fillrectlist-results-in-broken-drawing-on-macos/56051/10):
>
> We’ve reverted the original fix. Drawing should now appear the same as it did in early 7.0.5. Having tested on Sonoma beta 5, the black rectangle glitch that was previously present has been fixed, so I’m pretty sure this is a macOS bug that is now fixed. Give that it’s a bug, there’s not much we can do to work around it in a robust way. Any attempt on our side will be guesswork, so it’s better for us to just implement things according to the docs. If you’re seeing the black rectangle glitch …

---

<div class="post-metadata">

**Author:** ![op414](https://avatars.discourse-cdn.com/v4/letter/o/76d3ee/32.png) [@op414](https://forum.juce.com/u/op414)\
**Post date:** [August 23, 2023, 2:05pm UTC](https://forum.juce.com/t/br-regression-in-macos-rendering-in-juce-7-0-6/57292/6 "2023-08-23T14:05:51Z")

</div>

Great thanks!
