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 RA8875 by
Revision 74:686faa218914, committed 2014-11-09
- Comitter:
- WiredHome
- Date:
- Sun Nov 09 20:38:49 2014 +0000
- Parent:
- 73:f22a18707b5e
- Child:
- 75:ca78388cfd77
- Commit message:
- Deprecated one of the PrintScreen methods based on improvements in the other method.
Changed in this revision
| RA8875.cpp | Show annotated file Show diff for this revision Revisions of this file |
| RA8875.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/RA8875.cpp Sun Nov 09 18:52:46 2014 +0000
+++ b/RA8875.cpp Sun Nov 09 20:38:49 2014 +0000
@@ -1451,6 +1451,11 @@
RetCode_t RA8875::PrintScreen(uint16_t layer, loc_t x, loc_t y, dim_t w, dim_t h, const char *Name_BMP)
{
+ #if 1
+ (void)layer;
+ return PrintScreen(x, y, w, h, Name_BMP);
+ #else
+ // This is the deprecated interface and with the changes it is no longer implemented correctly.
uint16_t curLayer = GetDrawingLayer();
RetCode_t ret = SelectDrawingLayer(layer);
if (ret == noerror) {
@@ -1458,6 +1463,7 @@
}
SelectDrawingLayer(curLayer);
return ret;
+ #endif
}
RetCode_t RA8875::PrintScreen(loc_t x, loc_t y, dim_t w, dim_t h, const char *Name_BMP)
--- a/RA8875.h Sun Nov 09 18:52:46 2014 +0000
+++ b/RA8875.h Sun Nov 09 20:38:49 2014 +0000
@@ -1313,6 +1313,11 @@
/// This method captures the specified area as a 24-bit bitmap file,
/// including the option of layer selection.
///
+ /// @caution This method is deprecated as the alternate PrintScreen API
+ /// automatically examines the display layer configuration.
+ /// Therefore, calls to this API will ignore the layer parameter
+ /// and automatically execute the other method.
+ ///
/// Even though this is a 16-bit display, the stored image is in
/// 24-bit format.
///
