Skip to content

Commit

Permalink
Fix compiler warnings about hidden methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Oct 20, 2023
1 parent d33c72f commit 2d1487e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/include/Graphics/ImageSurface.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ class ImageSurface : public Surface

bool fillRect(PackedColor color, const Rect& rect) override;

using Surface::write;

protected:
virtual void read(uint32_t offset, void* buffer, size_t length) = 0;
virtual void write(uint32_t offset, const void* data, size_t length) = 0;
Expand Down
3 changes: 1 addition & 2 deletions src/include/Graphics/SpiDisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ class SpiDisplay : protected HSPI::Device, public AbstractDisplay
{
}

virtual bool begin(HSPI::PinSet pinSet, uint8_t chipSelect, uint8_t resetPin = PIN_NONE,
uint32_t clockSpeed = 4000000);
bool begin(HSPI::PinSet pinSet, uint8_t chipSelect, uint8_t resetPin = PIN_NONE, uint32_t clockSpeed = 4000000);

using HSPI::Device::getSpeed;

Expand Down

0 comments on commit 2d1487e

Please sign in to comment.