Skip to content

Extapp web simulator not refresh the screen #2393

@Valmontechno

Description

@Valmontechno

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions