Alexandre Julliard ha scritto:
- descr.bits = bits;
+ descr.bits = (BYTE *)bits + widthBytes * (tmpheight > 0 ? (height -
startscan - lines) : startscan);
You shouldn't need to change the bits address.
After a deeper look at it, I think there's no other (simple) way to do it.
Us
Massimo Del Fedele ha scritto:
p.s.: of course, it needs also
widthBytes * (.)
I just shorted it to show the problem :-)
Ciao
Max
Alexandre Julliard ha scritto:
Massimo Del Fedele writes:
- descr.bits = bits;
+ descr.bits = (BYTE *)bits + widthBytes * (tmpheight > 0 ? (height -
startscan - lines) : startscan);
You shouldn't need to change the bits address.
Well, original code was
descr.bits =
Massimo Del Fedele writes:
> diff --git a/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.c
> index 6df4137..42d9082 100644
> --- a/dlls/winex11.drv/dib.c
> +++ b/dlls/winex11.drv/dib.c
> @@ -3927,6 +3927,7 @@ INT CDECL X11DRV_SetDIBits( X11DRV_PDEVICE *physDev,
> HBITMAP hbitmap, UINT start
>