>>***************************************************************************
> >   bp2=BmpCreate(dw,dh,deep,NULL,&err); //dw and dh <160
> >
> >   loc =BmpGetBits(bp2);
> >
> >   for (i = 0; i < dh; i++)
> >   {
> >     for (j=0;j<dw;j++)
> >     {
> >       *loc++ = i;
> >     }
> >   }
> >
> > WinDrawBitmap(bp2, 0, 0);
> >
> ***************************************************************************
> > Depending on (dw,dh) sometimes I got a normal picture  (x, y and z are
> > colors) :
> >
> > xxxxx
> > yyyyy
> > zzzzzz
> >
> > And sometimes I got :
> > xxxxy
> > yyyzz
> > zz
> >
> > Someone got an idea???
> 
> can you be a bit more specific? what screen depth are you in?
> 256 color? looking at the logic, it should give you:
> 
> 000000
> 111111
> 222222
> 333333
> ......
> hhhhhh
> 
> ---
I'm sorry..
Actually I am in 256 colors. Logically, my buffer is exactly what you've said.
But on the screen I sometimes got 
000001
111122
222333
33
That is exactly as if the width of my picture sometimes goes to dw+1 and sometimes to 
dw.
Thanks
Gilles


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

Reply via email to