Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SimpleGUI by
Diff: Widgets/BitmapWidget.cpp
- 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);
