Hajo Nils Krabbenhöft
937f502158
Improve accelerated supersampling 2x antialiasing
Avoid fractional pixel offsets by forcing integer division of m_screenSize.
Shift rounded lookAtPoint onto OpenGL pixel center to ensure consistent rounding to int.
The pixel 0..1 @ 1x needs to fill the area 0..2 @ 2x so its center moves by 0.5 * (pixel size @ 1x).
4 years ago
Jeff Young
53a75a4961
Fix actual-clearance handling in arc collision routines.
Fixes https://gitlab.com/kicad/code/kicad/issues/8407
4 years ago
Jeff Young
49d65a0765
Fix some includes.
4 years ago
Jeff Young
976e756b02
Formatting.
4 years ago
Seth Hillbrand
de89505f02
Fix QA for rounding segments
4 years ago
Wayne Stambaugh
7c14e4e967
Common widget header housekeeping.
4 years ago
Seth Hillbrand
f40f696c37
Don't extract dp segment info from minimal-length
segments with 1IU of length are approximately parallel to everything and
the distance projections break down into rounding errors
Fixes https://gitlab.com/kicad/code/kicad/issues/8541
4 years ago
Seth Hillbrand
059f79dfdb
Re-remove KiROUND from header
Moves routines requiring KiROUND (and util.h by extension) to the cpp
file
4 years ago
Ian McInerney
5306ba4d55
Add missing header to eda_base_frame
4 years ago
Marek Roszko
4df3cb912d
Remove another leaky wx/log.h header
4 years ago
Marek Roszko
7faee5eda5
Stop salt the eart with wxhtml.h
4 years ago
Marek Roszko
5f91d3e321
Add header to bitmap_info.h.in in previous move
4 years ago
jean-pierre charras
ef96374eec
Fix an issue with KICAD_SCRIPTING_WXPYTHON=OFF on Linux.
Previously, with KICAD_SCRIPTING_WXPYTHON=OFF, a test using WXPYTHON_TOOLKIT was made.
4 years ago
Marek Roszko
b5b76eedf7
Avoid sharing gdicmn for just bitmaps
4 years ago
Marek Roszko
8ea180c6b7
Don't leak wx/debug everywhere via tool_event
4 years ago
Marek Roszko
29783f125b
Eliminate one wxRect constructor in BOX2
The only usage auto converted to BOX2D anyway...
4 years ago
Marek Roszko
24cb0e77eb
Fix MSVC builds after recent changes
4 years ago
Ian McInerney
d56251fdac
Remove universal include of wx.h in 3d viewer OpenGL file
4 years ago
Ian McInerney
d79dd39be3
Remove redundant headers
4 years ago
Ian McInerney
3ab69939f9
Remove wx.h from many files
4 years ago
Ian McInerney
e5446f8d7d
Remove wx/wx.h include from some pcb calculator headers
4 years ago
Seth Hillbrand
cf1c75ecd4
Handle rounding errors in seg length calculation
SQRT needs to be passed through KiROUND before returning otherwise,
truncation errrors will accumulate between routing and DRC
Fixes https://gitlab.com/kicad/code/kicad/issues/8541
4 years ago
Marek Roszko
af2707929d
Don't leak a wx header via eda_item.h
Turns out this provided the translation header globally :D
4 years ago
Marek Roszko
c294d28275
Split POLY_GRID_PARTITION to a cpp file
Not entirely a lightweight class
4 years ago
Marek Roszko
13abb9f947
Shift some seg functions to the cpp file
4 years ago
jean-pierre charras
6919d12c70
Eeschema, Spice simulator: use Ctrl+letter as accelerator keys.
Using only a letter can conflict with widgets accepting letters to enter data.
Fixes #8537
https://gitlab.com/kicad/code/kicad/issues/8537
4 years ago
Ian McInerney
f03ca3259e
Remove unused Boost code/includes
4 years ago
Ian McInerney
9a07b03b4c
Replace boost::function with std::function
4 years ago
Seth Hillbrand
7f56ff4d42
Minor performance improvement
Don't keep searching the DRC RTree for collisions after we detect a true
(not clearance-based) collision
4 years ago
Jeff Young
00ed75b891
Fix DRC performance with multi-layer keepout zones.
The main issue was a parameter mismatch which caused On^2 behaviour
for zone layers.
But there are several other performance optimizations here, along
with status bar updating for zones while running the dissallow test.
Fixes https://gitlab.com/kicad/code/kicad/issues/8521
4 years ago
jean-pierre charras
b6de4da686
Fix compatibility with wxWidgets 3.0.x
Fixes #8533
https://gitlab.com/kicad/code/kicad/issues/8533
4 years ago
Marek Roszko
eeb405c196
Cleanup some more excess math/util includes
4 years ago
Marek Roszko
0b4a680dbb
Hotglue wxLogDebug into math/util.h without the global include
4 years ago
Marek Roszko
5f581aa6ad
Move some LABEL_SPIN_STYLE to the cpp to add back warnings
4 years ago
Jon Evans
c8f308dd36
Update hotkeys dumper to use asciidoctor keyboard macro
4 years ago
Jon Evans
9effeb1fcb
Don't crash if an invalid bus connection is made
Certain situations can trigger the stale cleanup being run
on a bus that doesn't actually contain the stated member.
In this case we should just keep calm and carry on -- who knows
what netlist will be generated, but we shouldn't crash.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8530
4 years ago
Jon Evans
148ac19386
Fix launching from the build dir after new_python
4 years ago
Marek Roszko
45d1684bbe
Move inline function declaration to allow removing include
4 years ago
Marek Roszko
0dbfd28942
Remove unused vars
4 years ago
Marek Roszko
cf2bb5692a
Remove the wxLog calls from math/util.h for now
This was leaking windows headers and partial wx headers to 1084 compilation units......
This also means math/util.h is leaking to 1084 compilation units which seems a bit high too.
4 years ago
Marek Roszko
cfa2b57c68
Use logical OR to quiet static analyzer (no functional change)
4 years ago
Marek Roszko
65fee5b2ec
Clear m_out pointer at end of save
4 years ago
Jeff Young
46d746c9da
Performance optimizations.
4 years ago
Jeff Young
d12e5d824e
Renaming for clarity and a performance improvement in corner rounding.
4 years ago
Seth Hillbrand
208dd5cbd5
Cleanup string handling in fabmaster import
Avoids round-tripping std::string->c_str->std::string and makes a few
auto references explicit
4 years ago
Seth Hillbrand
63cc7d16b4
Repair board on open
We need to ensure that boards do not have duplicated KIIDs, so we repair
the duplicates when opening an existing file. This does not change the
file on disk until saved
4 years ago
Seth Hillbrand
74e4370a9b
Promote internal pybind11 ahead of system
5 years ago
Marek Roszko
2bde19bde2
Patch pybind11 to use debug python libraries on windows
5 years ago
Seth Hillbrand
3ca9e2d2b6
Add missing wxString* conversion
Python needs to know how to optionally convert to a wxString* for SWIG
to build out the interface.
5 years ago
Seth Hillbrand
b374f545be
Keep CMake wxPython behind flags
5 years ago