Skip to content

Replace std::string #84

@jnthbdn

Description

@jnthbdn

Dans le frameBuffer, la fonction drawText utilise une std::string ce qui demande une allocation de mémoire pour recopier le text, il faudrait au mieux mettre const std::string& ou même cont char* pour ne plus avoir d'allocation (dans le cas où l'on fait ssd.drawText("Hello World", ...))

void drawText(std::string str, unsigned x, unsigned y, uint16_t color);

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