Fix up minimal build.

This commit is contained in:
James Grogan 2023-01-23 12:02:08 +00:00
parent 119ea6f2cc
commit 7b4ba9dd54
5 changed files with 15 additions and 14 deletions

View file

@ -21,6 +21,6 @@ podman build -t ubuntu_22_04_minimal_deps .
# Run containers # Run containers
```bash ```bash
podman run -it -v $LOCAL_SOURCE_DIR:source ubuntu_22_04_minimal_deps:latest /bin/bash podman run -it -v $LOCAL_SOURCE_DIR:/source ubuntu_22_04_minimal_deps:latest /bin/bash
``` ```

View file

@ -3,26 +3,26 @@
#include "CircleNode.h" #include "CircleNode.h"
TerminalNode::TerminalNode(const Transform& transform) TerminalNode::TerminalNode(const Transform& transform)
: AbstractVisualNode(transform) : AbstractVisualNode(transform)
{ {
} }
void TerminalNode::setContent(Terminal* terminal) void TerminalNode::setContent(Terminal* terminal)
{ {
mContent = terminal; mContent = terminal;
} }
void TerminalNode::createOrUpdateGeometry(SceneInfo*) void TerminalNode::createOrUpdateGeometry(SceneInfo*)
{ {
if (!mMarker) if (!mMarker)
{ {
mMarker = std::make_unique<CircleNode>(Transform{}, 5); mMarker = std::make_unique<CircleNode>(Transform{}, 5);
mMarker->setFillColor(Color(0, 0, 0)); mMarker->setFillColor(Color(0, 0, 0));
mMarker->setHasStrokeColor(false); mMarker->setHasStrokeColor(false);
addChild(mMarker.get()); addChild(mMarker.get());
} }
} }
void TerminalNode::update(SceneInfo* sceneInfo) void TerminalNode::update(SceneInfo* sceneInfo)

View file

@ -20,12 +20,12 @@ std::unique_ptr<NullAudioInterface> NullAudioInterface::Create()
return std::make_unique<NullAudioInterface>(); return std::make_unique<NullAudioInterface>();
} }
void NullAudioInterface::openDevice(AudioDevice* device) void NullAudioInterface::openDevice(AudioDevice*)
{ {
} }
void NullAudioInterface::play(AudioDevice* device, AudioSample* sample, unsigned duration) void NullAudioInterface::play(AudioDevice*, AudioSample*, unsigned)
{ {
} }

View file

@ -9,7 +9,7 @@ class BasicFontEngine : public IFontEngine
{ {
virtual void initialize(){}; virtual void initialize(){};
virtual void loadFontFace(const std::filesystem::path& fontFile, float penSize = 16){}; virtual void loadFontFace(const std::filesystem::path&, float){};
virtual std::unique_ptr<FontGlyph> loadGlyph(unsigned charCode){return nullptr;}; virtual std::unique_ptr<FontGlyph> loadGlyph(unsigned){return nullptr;};
}; };

View file

@ -42,6 +42,7 @@ std::unique_ptr<AbstractPainter> PainterFactory::Create(DrawingContext* context,
return std::make_unique<RasterPainter>(context); return std::make_unique<RasterPainter>(context);
} }
#else #else
(void)drawMode;
return std::make_unique<RasterPainter>(context); return std::make_unique<RasterPainter>(context);
#endif #endif
#endif #endif