el h / SimpleGUI

Fork of SimpleGUI by Duncan McIntyre

Revision:
14:e6515b19f5a0
Parent:
12:63db16fea709
Child:
15:e69fd74d42e4
--- a/Widgets/BitmapWidget.cpp	Sat May 21 14:40:09 2016 +0000
+++ b/Widgets/BitmapWidget.cpp	Sat May 21 16:36:02 2016 +0000
@@ -20,9 +20,9 @@
 }
 
 
-void BitmapWidget::setBitmap(unsigned char* bitmap, int width, int height)
+void BitmapWidget::setBitmap(unsigned char const * bitmap, int width, int height)
 {
-    _bitmap = bitmap;
+    _bitmap = (unsigned char*)bitmap;
     // Adjust overall size so that the inner window fits the bitmap
     // Really we should just clip, but that's too hard for now
     setSize(((_padding + _borderWidth) * 2) + width, ((_padding + _borderWidth) * 2) + height);