-/* $Id: main.c,v 1.12 2007/01/09 20:53:50 mmondor Exp $ */
+/* $Id: main.c,v 1.13 2007/01/09 21:30:28 mmondor Exp $ */
/*
* Copyright (c) 2006, Matthew Mondor
SDL_Surface *s;
int i, y, h;
- /* XXX */printf("%d, %p\n", txt->numlines, txt->lines);
- printf("%p\n", txt->lines[0]);
- {
- char *cptr;
-
- for (cptr = txt->lines[0]; *cptr != '\0'; cptr++)
- printf("0x%02x\n", *cptr);
- }
-
r = (SDL_Rect){ 798, 16, 0, 0 };
(void) SDL_BlitSurface(img_textarea, NULL, screen_surface, &r);
h = TTF_FontHeight(txt->fnt);
y = 32;
for (i = 0; i < txt->numlines; i++, y += h) {
- /* XXX */printf("-%s\n", txt->lines[i]);
if ((s = TTF_RenderText_Blended(txt->fnt,
txt->lines[i], fontcol)) != NULL) {
r = (SDL_Rect){ 815, y, 0, 0 };
ptr = text_tok(NULL, &term)) {
int l, w;
- /* XXX */printf("!%s\n", ptr);
l = strlen(ptr);
again:
*olptr = '\0';
lptr = text->lines[text->numlines++] = olptr;
- /* Reiterate. */ /* XXX problem here!? */
+ /* Reiterate. */
if (term != '\n')
goto again;
-///* XXX */ else
-// lptr++;
}
free(str);