summaryrefslogtreecommitdiff
path: root/Gfx.cpp
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-11-05 05:38:31 +0100
committerXaviDCR92 <xavi.dcr@gmail.com>2017-11-05 05:38:31 +0100
commit8fba2176bc34aa7e507f0b9d983427bb5e522e17 (patch)
treed5e1c7d5560f30581fc5a1957121fc0a198b62f7 /Gfx.cpp
parent2cf2d608af862e812e7fd3ac580f869141a96fa7 (diff)
downloadpocketempires-8fba2176bc34aa7e507f0b9d983427bb5e522e17.tar.gz
* Modified shadows for Town centre.
* Bugfixes in unit movement and collision detection. Now it should work fine. * Added include guards to all *.i files. * Other minor changes
Diffstat (limited to 'Gfx.cpp')
-rw-r--r--Gfx.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Gfx.cpp b/Gfx.cpp
index 45ad6a4..cbb7d16 100644
--- a/Gfx.cpp
+++ b/Gfx.cpp
@@ -146,6 +146,17 @@ void GfxDrawCircle(uint16_t x, uint16_t y, uint8_t radius, int8_t color)
}
}
+void GfxDrawFillCircle(uint16_t x, uint16_t y, uint8_t radius, int8_t color)
+{
+ if (GfxIsInsideScreenArea(x, y, radius, radius) == true)
+ {
+ int8_t orig_color = gb.display.getColor();
+ gb.display.setColor(color);
+ gb.display.fillCircle(x, y, radius);
+ gb.display.setColor(orig_color);
+ }
+}
+
void GfxDrawRectangle(uint8_t x, uint8_t y, uint8_t w, uint8_t h, int8_t color)
{
if (GfxIsInsideScreenArea(x, y, w, h) == true)