This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Wrong colors using memset()


Wrong colors using memset()

Postby akhromov » Mar 29, 2002 @ 5:42pm

akhromov
pm Member
 
Posts: 3
Joined: Mar 22, 2002 @ 8:53pm
Location: NY, NY


Postby Pam » Mar 29, 2002 @ 5:57pm

This was discussed in another thread in this forum:



Pam
All the easy problems have been solved.
User avatar
Pam
pm Insider
 
Posts: 449
Joined: Jan 24, 2002 @ 10:30pm
Location: Ohio


Postby Johan » Mar 29, 2002 @ 6:09pm

Hi Andre,

Please be aware that the previous example by Dan East only works if you are going to fill the entire buffer. If you are going for segments you need to check your pointer for odd word alignment, otherwise it will sometimes crash on Pocket PCs but work perfectly well on statinary PCs.

/Johan
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby akhromov » Mar 29, 2002 @ 8:04pm

It's as I thought for the mis-alignment. Thanks for the posts.

I am not sure Dan's code helps me, as he loops through the screenBuffer and fills it pixel by pixel. I was already doing that, so this just solidifies that method as "the" solution. (Besides using black and white. :) Sorry, memset().

Thanks again for the info,

Andre
akhromov
pm Member
 
Posts: 3
Joined: Mar 22, 2002 @ 8:53pm
Location: NY, NY


Return to Phantom's Forum


Sort


Forum Description

Discuss any of Phantom's projects here (Operation Nutcracker, etc.)

Moderators:

sponge, RICoder, Phantom

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum