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:
- 10:71359af61af8
- Parent:
- 8:a0d75dff3c9b
- Child:
- 11:989eabe2a376
diff -r 40dd19da90c3 -r 71359af61af8 InitWindow.cpp
--- a/InitWindow.cpp Thu Apr 06 15:19:57 2017 -0500
+++ b/InitWindow.cpp Mon Apr 10 11:55:33 2017 -0500
@@ -103,7 +103,7 @@
setFocused();
}
-void InitWindow::doRender(Bitmap & bitmap) const
+void InitWindow::doRender(Bitmap & bitmap, int xOffset, int yOffset) const
{
Bitmap maximLogo(maximLogoWidth, maximLogoHeight, maximLogoData, Bitmap::ScanLineFormat);
Text title;
@@ -114,9 +114,9 @@
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, 0, 0);
- bitmap.overlay(title.render(), title.x(), title.y());
- bitmap.overlay(description.render(), description.x(), description.y());
+ bitmap.overlay(maximLogo, xOffset + x(), yOffset + y());
+ title.render(bitmap, xOffset + x(), yOffset + y());
+ description.render(bitmap, xOffset + x(), yOffset + y());
}
void InitWindow::updated()