kicad/common/gal
Mika Laitio 1e21daf781 fix if comparison with uninitialized member value
Fix the valgrind warning from the use of an uninitialized
member variable by setting the DEFAULT value for
m_currentNativeCursor in the constructors member initializer list.
This fixes the following warning caused by the SetNativeCursorStyle
method call later on the constructor.

==66660== Warning: client switching stacks?  SP change: 0x1ffeffee40 --> 0xdf7efe8
==66660==          to suppress, use: --max-stackframe=137187819096 or greater
==66660== Conditional jump or move depends on uninitialised value(s)
==66660==    at 0x13F0764E: UnknownInlinedFun (graphics_abstraction_layer.cpp:276)
==66660==    by 0x13F0764E: KIGFX::GAL::GAL(KIGFX::GAL_DISPLAY_OPTIONS&) (graphics_abstraction_layer.cpp:78)

Error can be reproduced and checked from the log.txt
by launching kicad with valgrind command
"valgrind --leak-check=full kicad > log.txt 2>&1"
and then launching the footprint editor from the kicad main dialog.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8784

Signed-off-by: Mika Laitio <lamikr@gmail.com>
2021-07-15 16:18:24 +00:00
..
cairo Further simplification of AA regime 2021-06-08 17:20:41 -07:00
opengl Fix stroke text size calculation and bitmap text overbar 2021-06-14 09:09:30 +00:00
color4d.cpp Add standard wire orange and correct color init 2021-05-28 11:51:54 -07:00
cursors.cpp Make the GAL responsible for the native cursor management 2021-04-05 02:36:12 +01:00
dpi_scaling.cpp Namespace the env_vars.h functions 2021-06-27 00:38:19 -04:00
gal_display_options.cpp Update GAL observers for all frames, not just calling frame. 2020-10-09 21:30:09 +01:00
graphics_abstraction_layer.cpp fix if comparison with uninitialized member value 2021-07-15 16:18:24 +00:00
hidpi_gl_canvas.cpp Better zoom defaults for 3D viewer. 2021-06-28 19:08:23 +01:00
stroke_font.cpp Go back to using space-width for tabs (instead of max-char-width). 2021-06-24 23:53:27 +01:00