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.
Dependencies: MaximInterface
Diff: InitWindow.cpp
- Revision:
- 11:989eabe2a376
- Parent:
- 10:71359af61af8
- Child:
- 13:6a6225690c2e
diff -r 71359af61af8 -r 989eabe2a376 InitWindow.cpp
--- a/InitWindow.cpp Mon Apr 10 11:55:33 2017 -0500
+++ b/InitWindow.cpp Wed May 03 16:08:59 2017 -0500
@@ -104,17 +104,17 @@
}
void InitWindow::doRender(Bitmap & bitmap, int xOffset, int yOffset) const
-{
- Bitmap maximLogo(maximLogoWidth, maximLogoHeight, maximLogoData, Bitmap::ScanLineFormat);
+{
Text title;
title.setText("MAXREFDES155#");
title.resize(title.preferredWidth(), title.preferredHeight());
- title.move(0, maximLogo.height() + 5);
+ title.move(0, maximLogoHeight + 5);
Text description;
description.setText(m_state == Completed ? "Any key to begin" : "Initializing...");
description.resize(description.preferredWidth(), description.preferredHeight());
description.move(0, title.y() + title.height() + 5);
- bitmap.overlay(maximLogo, xOffset + x(), yOffset + y());
+ bitmap.overlay(xOffset + x(), yOffset + y(),
+ maximLogoData, sizeof(maximLogoData) / sizeof(maximLogoData[0]), maximLogoWidth);
title.render(bitmap, xOffset + x(), yOffset + y());
description.render(bitmap, xOffset + x(), yOffset + y());
}