Home Products Download Order Contacts


Subject: Re: Help with blit bug!

> I rewrote the code the code to do one pixel at a time and it works
> perfectly, although slower.

Well isn't this bug a hard one:)

I can only think of some weird alignment issue: when you calculate an
address via reinterpret_cast, you might get one that is not aligned on a
dword-boundary, and that might cause wrong behaviour on your device. So
another suggestion for testing purposes: when working with dword-data,
ensure being dword-aligned.

For example:
char* memory = ...;
// Not 4-byte aligned:
int32* a = (int32*)(&memory[10]);

Kalle Rutanen


View All Messages in comp.graphics.algorithms

Help with blit bug! =>Re: Help with blit bug! =>Re: Help with blit bug! =>


Copyright 2006 WatermarkFactory.com. All Rights Reserved.