Ignore:
Timestamp:
Nov 22, 2003, 1:51:27 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • Disabled gdkpixbuf code.
Location:
libcaca/trunk/examples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/examples/Makefile.am

    r202 r206  
    2121caca_demo_LDADD = ../src/libcaca.a $(LDFLAGS_slang) $(LDFLAGS_ncurses) -lm
    2222caca_demo_CPPFLAGS = -DDATADIR=\"$(pkgdatadir)\"
    23 caca_demo_CFLAGS = `pkg-config --cflags gtk+-2.0`
    24 caca_demo_LDFLAGS = `pkg-config --libs gtk+-2.0`
     23#caca_demo_CFLAGS = `pkg-config --cflags gtk+-2.0`
     24#caca_demo_LDFLAGS = `pkg-config --libs gtk+-2.0`
    2525
    2626caca_spritedit_SOURCES = spritedit.c
  • libcaca/trunk/examples/demo.c

    r204 r206  
    2828#include <stdio.h>
    2929
     30#if 0
    3031#include <gdk/gdk.h>
    3132#include <gdk/gdkpixbuf.h>
     33#endif
    3234
    3335#include "caca.h"
     
    4446static void demo_triangles(void);
    4547static void demo_sprites(void);
     48#if 0
    4649static void demo_blit(void);
     50#endif
    4751
    4852int bounds = 0;
     
    5155struct caca_sprite *sprite = NULL;
    5256
     57#if 0
    5358GdkPixbuf *pixbuf;
    5459char *pixels;
    5560int bufx, bufy, bufpitch;
     61#endif
    5662
    5763int main(int argc, char **argv)
     
    7480        sprite = caca_load_sprite("examples/caca.txt");
    7581
     82#if 0
    7683gdk_init (&argc, &argv);
    7784    //pixbuf = gdk_pixbuf_new_from_file("/home/sam/pix/gally4.jpeg", NULL);
     
    96103fprintf(stderr, "bits: %i\n", gdk_pixbuf_get_bits_per_sample(pixbuf));
    97104fprintf(stderr, "w %i, h %i, stride %i\n", bufx, bufy, bufpitch);
     105#endif
    98106
    99107    /* Main menu */
     
    166174                demo = demo_sprites;
    167175                break;
     176#if 0
    168177            case 'i':
    169178            case 'I':
    170179                demo = demo_blit;
    171180                break;
     181#endif
    172182            }
    173183
     
    233243    caca_putstr(4, 13, "'s': sprites");
    234244    caca_putstr(4, 14, "'c': color");
     245#if 0
    235246    caca_putstr(4, 15, "'i': image blit");
     247#endif
    236248
    237249    caca_putstr(4, 17, "settings:");
     
    491503}
    492504
     505#if 0
    493506static void demo_blit(void)
    494507{
    495 #if 0
    496508    caca_blit(6, 4, caca_get_width() - 6, caca_get_height() - 4,
    497509              pixels, bufx, bufy);
    498 #endif
    499 }
    500 
     510}
     511#endif
     512
Note: See TracChangeset for help on using the changeset viewer.