[ros-dev] Strange Stretch Problem
James Tabor
jimtabor at adsl-64-217-116-74.dsl.hstntx.swbell.net
Tue Jan 17 02:31:00 CET 2006
Hi!
I just tested your patch and it works okay! I'll wait for the rest before I commit
your patch!
Good Job!
James
Sebastiaan Roodenburg wrote:
> Hi!
>
> I've set up a build environment, and tested my suggested fix. I had to add a
> check for a vaild clipping region to get it to work, but this patch fixes
> the problem:
>
> Index: desktop.c
> ===================================================================
> --- desktop.c (revision 20928)
> +++ desktop.c (working copy)
> @@ -1274,11 +1274,12 @@
>
> if (WinSta->WallpaperMode == wmStretch)
> {
> - NtGdiStretchBlt(hDC,
> - x,
> - y,
> - Rect.right,
> - Rect.bottom,
> + if(Rect.right && Rect.bottom)
> + NtGdiStretchBlt(hDC,
> + x,
> + y,
> + sz.cx,
> + sz.cy,
> hWallpaperDC,
> 0,
> 0,
>
> Regards,
>
> Sebastiaan
>
>
More information about the Ros-dev
mailing list