Skip to content

Grid drawing artifact on x/y axis

Description

There are some artifacts appearing when drawing the grid on the x/y axis lines (present with both OpenGL and Cairo, but they behave slightly differently).

Cairo rendering and grid dots - note that there are dots missing on the lines x=0 and y=0 (present on all zoom levels):

image

OpenGL rendering and grid dots - looks the same as Cairo (for zoomed in levels):

image

Cairo rendering and grid crosses - note that the crosses on the lines x=0 and y=0 look different, and they disappear as the canvas is zoomed in:

image

OpenGL rendering and grid crosses - looks like the same as Cairo (with same zooming behavior):

image

Steps to reproduce

  1. Use either Cairo or OpenGL rendering
  2. Put the (0,0) point in the center of the window and zoom in/out
  3. Observe the artifacts appear

KiCad Version

Application: Pcbnew

Version: (5.99.0-2586-g0ff5dcee69-dirty), debug build

Libraries:
	wxWidgets 3.0.4
	libcurl/7.69.1 OpenSSL/1.1.1g-fips zlib/1.2.11 brotli/1.0.7 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh/0.9.4/openssl/zlib nghttp2/1.41.0

Platform: Linux 5.7.8-200.fc32.x86_64 x86_64, 64 bit, Little endian, wxGTK

Build Info:
	Date: Aug  7 2020 00:41:58
	wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
	Boost: 1.69.0
	OCC: 7.4.0
	Curl: 7.69.1
	ngspice: 32
	Compiler: Clang 10.0.0 with C++ ABI 1002

Build settings:
	KICAD_SCRIPTING=ON
	KICAD_SCRIPTING_MODULES=ON
	KICAD_SCRIPTING_PYTHON3=ON
	KICAD_SCRIPTING_WXPYTHON=ON
	KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
	KICAD_SCRIPTING_ACTION_MENU=ON
	BUILD_GITHUB_PLUGIN=ON
	KICAD_USE_OCC=ON
	KICAD_SPICE=ON
	KICAD_STDLIB_DEBUG=OFF
	KICAD_STDLIB_LIGHT_DEBUG=ON
	KICAD_SANITIZE=ON