(no title)
vmsp | 6 months ago
This author has some pretty cool stuff, like a tiny alternative to Firebase https://zserge.com/posts/pennybase/
vmsp | 6 months ago
This author has some pretty cool stuff, like a tiny alternative to Firebase https://zserge.com/posts/pennybase/
unwind|6 months ago
Next simple task would be to fill the complete framebuffer with a solid colour:
The first is the obvious typo around `sizeof`, which I didn't even see at first (edit: this).The second is that code will only work for 8-bit colors, i.e. only the 8 (technically CHAR_BIT, "a byte") least-significant bits of `rgb` will be used. This is a quirk of the `memset()` standard C function, which has the prototype:
but then the man page [1] says:The memset() function fills the first n bytes of the memory area pointed to by s with the constant byte c.
[1]: https://man7.org/linux/man-pages/man3/memset.3.html
unknown|6 months ago
[deleted]
naruhodo|6 months ago
darccio|6 months ago
[0]: https://github.com/darccio/zas
[1]: https://github.com/zserge/zs
[2]: https://zserge.com/posts/new-site-generator2/