Skip to content

Commit

Permalink
remove DFSDL.h dependency from Graphic.h
Browse files Browse the repository at this point in the history
this significantly reduces the number of compilation units that depend on DFSDL.h
  • Loading branch information
ab9rf committed Nov 4, 2024
1 parent 3a1cc55 commit fad06d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions library/LuaApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ distribution.
#include "modules/Burrows.h"
#include "modules/Constructions.h"
#include "modules/Designations.h"
#include "modules/DFSDL.h"
#include "modules/EventManager.h"
#include "modules/Filesystem.h"
#include "modules/Gui.h"
Expand Down
4 changes: 3 additions & 1 deletion library/include/modules/Graphic.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ distribution.
#include <stdint.h>
#include "Export.h"
#include "Module.h"
#include "DFSDL.h"
#include <vector>

namespace DFHack
{
// forward declaration used here instead of including DFSDL.h to reduce inclusion loading
struct DFTileSurface;

class DFHACK_EXPORT Graphic : public Module
{
public:
Expand Down

0 comments on commit fad06d1

Please sign in to comment.