fixed some theoretical bugs

This commit is contained in:
2025-06-29 11:24:49 +02:00
parent 8f5cfb6be1
commit 230de47515
4 changed files with 14 additions and 5 deletions

View File

@@ -140,12 +140,9 @@ 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++;