delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/03/12:12:54

To: djgpp AT delorie DOT com
Subject: Re: Blitting problem with Allegro
References: <386E810E DOT DDD820D AT indigo DOT ie>
From: Michael Bukin <M DOT A DOT Bukin AT inp DOT nsk DOT su>
Date: 03 Jan 2000 18:18:03 +0600
In-Reply-To: B O'Donnell's message of "Sat, 01 Jan 2000 22:34:54 +0000"
Message-ID: <20embze4ck.fsf@Sky.inp.nsk.su>
Lines: 19
X-Mailer: Gnus v5.5/Emacs 19.34
Reply-To: djgpp AT delorie DOT com

B O'Donnell <odonnllb AT indigo DOT ie> writes:

> When I blit to screen (640*480*256) from a bitmap, short lines of pixels
> appear on the screen vertically displaced from their proper position,
> and standing out against the background, though, as far as I can tell,
> they also appear where they ought - anyway, though my eyes aren't that
> good, I can't see any black lines in the blits.
> ...
> My card is an S3 with 2 megabytes of memory, but I don't have this
> problem on Linux with svgalib.

It seems your are blitting to screen and showing mouse at the same
time.  When you draw to screen you should hide mouse, freeze it using
freeze_mouse_flag or scare mouse (with scare_mouse/unscare_mouse).
If you are using double buffering, it might be better to draw mouse
yourself into double buffer just before blitting it to screen.

-- 
Michael Bukin

- Raw text -


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