This is the David Smart RA8875 Library with mods for working with FRDM-K64F

Revision:
183:808f272e481e
Parent:
182:8832d03a2a29
Child:
186:910fc2335c45
--- a/RA8875.cpp	Sat Aug 03 00:26:33 2019 +0000
+++ b/RA8875.cpp	Thu Aug 08 11:29:48 2019 +0000
@@ -1977,7 +1977,7 @@
     }
     printf("  => (%3d,%3d)\r\n", x,y);
     #endif
-    if (radius <= 0 || (x - radius) < 0 || (x + radius) > width()
+    if ((x - radius) < 0 || (x + radius) > width()
     || (y - radius) < 0 || (y + radius) > height()) {
         ret = bad_parameter;
     } else if (radius == 1) {
@@ -2021,7 +2021,7 @@
 
     INFO("ellipse");
     PERFORMANCE_RESET;
-    if (radius1 <= 0 || radius2 <= 0 || (x - radius1) < 0 || (x + radius1) > screenwidth 
+    if ((x - radius1) < 0 || (x + radius1) > screenwidth 
     || (y - radius2) < 0 || (y + radius2) > screenheight) {
         ret = bad_parameter;
     } else if (radius1 == 1 && radius2 == 1) {