Browse Source
The GAL_DISPLAY_OPTIONS member of EDA_DRAW_FRAME is a private member and is used in only a couple of places in the class. The real use of this member is by a by-ref interface, GetGalDisplayOptions. Because te GAL options are used by a very select few users of EDA_DRAW_FRAME, it makes little sense to force all the (many) files including draw_frame.h to also include gal_display_options.h, when the vast majority have no need for it. This massively speeds up compilation of the project when gal_display_options.h is changed. More isolation could be acheived by separating the GAL config types (eg OpenGL antialias modes and grid style) from the options header, as, although the GAL class uses them, not many includers of the GAL header need the options struct as well.pull/3/merge
committed by
Maciej Suminski
3 changed files with 15 additions and 6 deletions
Loading…
Reference in new issue