Mail Archives: djgpp/2000/08/23/21:04:23
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 -