gtk2: Pen pattern depends on line length
Original Reporter info from Mantis: AntonK
-
Reporter name: Anton Kavalenka
Original Reporter info from Mantis: AntonK
- Reporter name: Anton Kavalenka
Description:
Setting the pen style to psDot at some canvas size creates shifted (misaligned) pattern.
It is found that 2nd parameter (0) of
laz_gdk_gc_set_dashes(GC, 0, @ADashes[0], Length(ADashes));
meant to be from GTK2 documentation:
https://developer.gnome.org/gdk2/stable/gdk2-Graphics-Contexts.html#gdk-gc-set-dashes
The dash_offset defines the phase of the pattern, specifying how many pixels into the dash-list the pattern should actually begin.
Steps to reproduce:
Run the attached project and try to resize form.
Mantis conversion info:
- Mantis ID: 33866
- OS: Linux
- OS Build: Debian 10
- Platform: x86_64
- Version: 1.9 (SVN)
- Fixed in version: 2.1 (SVN)
- Fixed in revision: 61378 (#58ba2d07)
- Target version: 2.0.4