-
Notifications
You must be signed in to change notification settings - Fork 486
Open
Description
Describe the bug
In some cases, the external application web simulator does not refresh the screen, whereas a real calculator displays correctly.
To Reproduce
Here, the simulator displays B without displaying A.
#include "eadkpp.h"
const char eadk_app_name[]
#if PLATFORM_DEVICE
__attribute__((section(".rodata.eadk_app_name")))
#endif
= "Num Wild";
const uint32_t eadk_api_level
#if PLATFORM_DEVICE
__attribute__((section(".rodata.eadk_api_level")))
#endif
= 0;
using namespace EADK;
int main()
{
Keyboard::State keyState;
Display::pushRectUniform(Screen::Rect, 0xf6f6f6);
Display::drawString("A", Point(0, 0), true, 0x414041, 0xf6f6f6);
Timing::msleep(1000);
Display::drawString("B", Point(0, 0), true, 0x414041, 0xf6f6f6);
while (true)
{
keyState = Keyboard::scan();
}
}If keyState = Keyboard::scan(); is deleted, nothing will be displayed.
This extract still displays nothing.
while (true) {
Display::drawString("A", Point(0, 0), true, 0x414041, 0xf6f6f6);
Display::drawString("B", Point(0, 0), true, 0x414041, 0xf6f6f6);
}Expected behavior
We expect the save behavior that a real calculator.
The first example must be display A then B after 1 second. The second must be blink A and B.
Environment
- Epsilon version: 24.10.0
- Platform: Web simulator
- Browsers: Google Chrome, Microsoft Edge, Mozilla Firefox
Metadata
Metadata
Assignees
Labels
No labels