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

Revision:
182:8832d03a2a29
Parent:
167:8aa3fb2a5a31
Child:
190:3132b7dfad82
--- a/GraphicsDisplay.cpp	Fri Aug 02 02:12:26 2019 +0000
+++ b/GraphicsDisplay.cpp	Sat Aug 03 00:26:33 2019 +0000
@@ -91,9 +91,19 @@
     : TextDisplay(name)
 {
     font = NULL;
+    img_x = 0;
+    img_y = 0;
+    _x = 0;
+    _y = 0;
+    fontScaleX = 0;
+    fontScaleY = 0;
+    memset(&screen_descriptor, 0, sizeof(gif_screen_descriptor_t));
     global_color_table = NULL;
+    global_color_table_size = 0;
     local_color_table = NULL;
+    local_color_table_size = 0;
     screen_descriptor_isvalid = false;
+    memset(&windowrect, 0, sizeof(rect_t));
 }
 
 //GraphicsDisplay::~GraphicsDisplay()
@@ -427,7 +437,10 @@
     if (work) {
         jdec = (JDEC *)swMalloc(sizeof(JDEC));
         if (jdec) {
-            memset(work, 0, JPEG_WORK_SPACE_SIZE/sizeof(uint16_t));
+            // Original
+            //memset(work, 0, JPEG_WORK_SPACE_SIZE/sizeof(uint16_t));
+            // Revised
+            memset(work, 0, JPEG_WORK_SPACE_SIZE);
             memset(jdec, 0, sizeof(JDEC));
             r = (RetCode_t)jd_prepare(jdec, NULL, work, JPEG_WORK_SPACE_SIZE, fh);
             INFO("jd_prepare returned %d", r);