www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/25/16:30:31

From: "D. Huizenga" <skis AT concentric DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: even more graphics problems with allegro
Date: Wed, 25 Mar 1998 11:20:00 -0500
Organization: Student
Lines: 15
Message-ID: <35192EB0.F59BDE31@concentric.net>
References: <C12565D2 DOT 0033C6F8 DOT 00 AT vega DOT ads DOT it>
NNTP-Posting-Host: ts001d16.gps-mi.concentric.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

[Snip]
> I guess what you wanted was something like this:
>   blit((BITMAP *)data[selecto].dat, screen, 0, 0, 0, 0, 320, 200);

Actually, the typecast is not neccessary, AFAIK.
simply using

blit(data[selecto].dat, screen, 0, 0, 0, 0, 320, 200);

should work fine, and it's slightly less long to type.
--
Dan Huizenga
Email: Skis AT Concentric DOT net
Home: http://www.concentric.net/~skis
(BGui is sitting untouched, except for the new example programs)

- Raw text -


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