delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/08/16:17:53

From: mcesc AT aol DOT com (MCEsc)
Newsgroups: comp.os.msdos.djgpp
Subject: allegro doesn't draw
Date: 8 Mar 1998 21:05:30 GMT
Lines: 15
Message-ID: <19980308210500.QAA17344@ladder03.news.aol.com>
NNTP-Posting-Host: ladder03.news.aol.com
Organization: AOL http://www.aol.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

this function draws a bitmap which is the same size of the screen to the
screen, wrapping the bitmap around.  It works fine in 320x200 modes yet when I
run it in a 640x480 mode, sometimes it doesn't draw anything, sometimes it
does.
void show_sky(BITMAP *bit, BITMAP *dest, int x, int y)
        {
        blit(bit, dest, x, y, 0, 0, bit->w - x, bit->h - y);
        blit(bit, dest, 0, y, bit->w - x, 0, bit->w - ( bit->w - x ), bit->h -
y);
        blit(bit, dest, x, 0, 0, bit->h - y, bit->w - x, bit->h - ( bit->h - y
));
        blit(bit, dest, 0, 0, bit->w - x, bit->h - y, bit->w - ( bit->w - x ),
bit->h - ( bit->h - y ));
        }

- Raw text -


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