lots of random little fixes

This commit is contained in:
2025-06-29 11:05:59 +02:00
parent 0c2727c9a7
commit 8f5cfb6be1
4 changed files with 33 additions and 28 deletions

View File

@@ -140,9 +140,12 @@ void nni_gpu_set(nni_gpu *gpu, void *_, nn_component *component, nn_computer *co
return;
}
printf("It is to print: %s\n", s);
int current = 0;
while(s[current] != 0) {
int codepoint = nn_unicode_codepointAt(s, current);
printf("char rendered: %i\n", codepoint);
nn_setPixel(gpu->currentScreen, x, y, nni_gpu_makePixel(gpu, s + current));
if(isVertical) {
y++;