- Comence a implementar el selector de plantilles

This commit is contained in:
2024-07-30 13:54:31 +02:00
parent b0dd34b5df
commit 1cd08b1110
6 changed files with 81 additions and 2 deletions

View File

@@ -56,13 +56,13 @@ namespace draw
void clear(const uint8_t val)
{
if (!stencil) return;
if (!enabled || !stencil) return;
memset(stencil->pixels, val, stencil->w*stencil->h);
}
void set(const uint8_t val)
{
if (!stencil) return;
if (!enabled || !stencil) return;
value = val;
}