> >     scrWidth = width / scrWidth;  // how many bytes take up one screen line
> 
> I think you mean "scrWidth = width / scrPixel".  But even so, this part is not
> necessarily true.  Display devices often support a "row bytes" value that can be
> different than what you'd get from your calculation.

  typo :)

  the above would only work if the width was divisible exactly by the 
  srcPixel and adjusted to handle the memory alignments of the device
  (i was looking for rowBytes) :P 

  for example, on 160x160 display, 1bpp, scrWidth = 20. if the device
  was 162x160, it would more likely be scrWidth = 22 (word alignment)
  i believe the structures contain this value anyhow - so, you dont
  need to calculate it.

  :P
 
// az
[EMAIL PROTECTED]
http://www.ardiri.com/    <--- free games!


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to