gtk-rs / gtk3-rs

Rust bindings for GTK 3
https://gtk-rs.org
MIT License
508 stars 90 forks source link

[BUG] Unexpected lines in `cairo_threads` example running on HiDPI display #854

Open awm129 opened 7 months ago

awm129 commented 7 months ago

Bug description

Running the cairo_threads example from tag 0.18.1 (master currently fails to build) displays unexpected lines between each quadrant of the DrawingArea:

ct_hidpi

This was observed on a MacBook Air with a Retina display at 1440x900 and a Dell XPS running Ubuntu 22.04 at 1920x1200 with scaling set to 200% (Settings -> Displays -> Scale).

These "gridlines" do not appear on displays that aren't using HiDPI mode or scaling such as the MacBook running at 2560x1600 or the Ubuntu laptop with scaling set to 100%.