Mail Archives: djgpp/1997/06/04/16:58:35
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 -