delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/04/16:58:35

From: jim AT curved-logic DOT com (James Shaw)
Newsgroups: comp.os.msdos.djgpp,rec.games.programmer
Subject: Re: weirdd32 bit lines in VESA 2.0
Date: Wed, 04 Jun 1997 08:23:46 GMT
Organization: None
Lines: 27
Message-ID: <3395258c.1419768@snews2.zippo.com>
References: <338F8816 DOT 43DF28C6 AT mwci DOT net> <3394754A DOT 1FBB0227 AT mwci DOT net>
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Larry Swanson <laswanson AT mwci DOT net> wrote:

>> it will plot the Line but then the line to rhe right of
>> it will be black, which is not what I want.
>>
>> I have tested my put pixel code at all corners of the screen and with
>> all 3 primary colors and it always worked right.
>> I have no idea what else to check for(it works when my lines go from
>> the
>> left side of the screen to the middle) and I would really aprreciate
>> someon looking at this and hopefully pointing out a blatant error or
>> assumption.
>>
>I have been working on this and I have discovered that plotting a pixel
>to be blue will set the blue component pixel to the right of it to 0.  I
>still don't have any idea how to fix this and would be grateful for some
>help.

It sounds rather like you're trying to write your 24bit colour as a
32bit dword - that would explain why when you write to the screen's
corners the colours are correct, but when you write runs of pixels it
all mucks up.
In addition to the code you posted earlier, could you post your
set_pixel or draw_line routine missing from the previous one?
(or email it to me)

Jim

- Raw text -


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