From 1603289e38cdc5904a56bed465c8a5406014ecf1 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Mon, 29 Jul 2019 12:51:19 +0200 Subject: Optical changes to cLCARSNGDisplayReplay --- lcarsng.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lcarsng.c') diff --git a/lcarsng.c b/lcarsng.c index 4ab490a..edcdc08 100644 --- a/lcarsng.c +++ b/lcarsng.c @@ -191,6 +191,12 @@ void DrawDevicePosition(cOsd *Osd, const cPositioner *Positioner, int x0, int y0 } #endif +void DrawRectangleOutline(cOsd *Osd, int x1, int y1, int x2, int y2, tColor Color1, tColor Color2, int usage) +{ + Osd->DrawRectangle(x1, y1, x2, y2, Color1); + Osd->DrawRectangle(x1 + ((usage & muLeft) ? Margin : 0), y1 + ((usage & muTop) ? Margin : 0), x2 - ((usage & muRight) ? Margin : 0), y2 - ((usage & muBottom) ? Margin : 0), Color2); +} + static time_t lastDiskSpaceCheck = 0; static int lastFreeMB = -1; -- cgit v1.2.3