ListBox dpi problem

Hi everyone,

I’m using a ListBox with JUCE 4.1. It works great with my retina macbook (on a retina display or on a standard external monitor).
On windows (surface pro), this list displays some glitches between items.

Using refreshComponentForRow or not does not change the display.

I tried to disable windows DPI awareness (JUCE_DISABLE_WIN32_DPI_AWARENESS) and glitches disapears !

Any idea ? :confused:

Must be holidays everywhere :slight_smile:

I’m not sure about the cause of that ‘glitch’, but if you want a fully filled background colour as on your screenshot, perhaps a workaround could be to set the ListBox::backgroundColourId instead of painting the rows?