X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=debug.c;fp=debug.c;h=0000000000000000000000000000000000000000;hp=c59dcbb49f975c182390ff6902892e57edf82bc0;hb=1aa8a0df26ef582dee4ffe3aa2f17f1f1a42b3c9;hpb=9ffdd66ad5f2c29a2125bbd458a700625f178065 diff --git a/debug.c b/debug.c deleted file mode 100644 index c59dcbb..0000000 --- a/debug.c +++ /dev/null @@ -1,51 +0,0 @@ -#include "debug.h" -#include "shape.h" - -#include -#include - -void -printf_surface(SDL_Surface *s, char *name) -{ - printf("SDL_Surface *%s = {\n", name); - printf("\tflags = 0x%x;\n", s->flags); - printf("\tformat = {\n"); - printf("\t\tBitsPerPixel = %d;\n", s->format->BitsPerPixel); - printf("\t\tBytesPerPixel = %d;\n", s->format->BytesPerPixel); - printf("\t\tmasks = 0x%x, 0x%x, 0x%x, 0x%x;\n", s->format->Rmask, s->format->Gmask, - s->format->Bmask, s->format->Amask); - printf("\t\tshifts = %d, %d, %d, %d;\n", s->format->Rshift, s->format->Gshift, - s->format->Bshift, s->format->Ashift); - printf("\t\tlosses = %d, %d, %d, %d;\n", s->format->Rloss, s->format->Gloss, - s->format->Bloss, s->format->Aloss); - printf("\t\tcolorkey = %d;\n", s->format->colorkey); - printf("\t\talpha = %d;\n", s->format->alpha); - printf("\t};\n"); - printf("\tw, h = %d, %d;\n", s->w, s->h); - printf("\tpitch = %d;\n", s->pitch); - printf("};\n"); -} - -void -printb(uint32_t n, int bits) -{ - int i; - - for(i=0; ih; i++) { - for(j=0; jmw-1; j++) printb(s->mask[s->mw*i+j], 32); - printb(s->mask[s->mw*i+j], s->w % 32); - putchar('\n'); - } - putchar('\n'); -}