KSM edits to RA8875

Dependents:   Liz_Test_Code

Revision:
121:6bc4911f5e55
Parent:
120:be2aaa3adf72
Child:
122:79e431f98fa9
--- a/GraphicsDisplay.cpp	Mon May 16 22:31:13 2016 +0000
+++ b/GraphicsDisplay.cpp	Tue May 17 22:05:43 2016 +0000
@@ -9,7 +9,7 @@
 #include "Bitmap.h"
 #include "string.h"
 
-#define DEBUG "GD  "
+//#define DEBUG "GD  "
 // ...
 // INFO("Stuff to show %d", var); // new-line is automatically appended
 //
@@ -409,7 +409,8 @@
         return(file_not_found);
     
     //INFO("RenderJpegFile(%d,%d,%s)", x,y, Name_JPG);
-    work = (uint16_t *)malloc(JPEG_WORK_SPACE_SIZE/sizeof(uint16_t));
+    work = (uint16_t *)malloc(JPEG_WORK_SPACE_SIZE);
+    
     if (work) {
         jdec = (JDEC *)malloc(sizeof(JDEC));
         if (jdec) {