www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/23/21:04:23

Message-ID: <20000824010414.29585.qmail@web510.mail.yahoo.com>
Date: Wed, 23 Aug 2000 18:04:14 -0700 (PDT)
From: Chris Amos <homie_dont_play_dat AT yahoo DOT com>
Subject: WHAT'S GOING ON!!??!?!!
To: List DJGPP <djgpp AT delorie DOT com>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

I made a 40x60x24 bitmap and when I load it into DJGGP and Draw it on
the screen, It just draws a bunch af garbage where the sprite is
supposed to be. Whats going on?

------- CODE ------------------------------------

// Program by Twisted Matrix (Homie_dont_play_dat AT Yahoo DOT com)
// Uses ALLEGRO and the DJGPP compiler

#include <stdlib.h>
#include <stdio.h>
#include <allegro.h>

main()
{
  BITMAP *bmp;
  PALETTE pal;

  /* Initiate the Allegro library for use in this program */
  allegro_init();
  install_keyboard();
  set_gfx_mode(GFX_AUTODETECT,640, 480,0,0);
  set_color_depth(16);
  bmp = load_bitmap("Tile1.bmp", pal);
  draw_sprite(screen, bmp, 0, 0);

  readkey();
  return 0;

}

=====
~ Twisted Matrix (Founder of ULTRATECH)

URL: http://www.stas.net/ultratech
Yahoo ID: Homie_dont_play_dat, ICQ: 74628745
AOL im: TwistedMatrix

__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019