From b76d4db3db3e8c5e7899f2086794cabd93dd6a07 Mon Sep 17 00:00:00 2001 From: law Date: Wed, 3 Jun 1998 18:33:25 +0000 Subject: [PATCH] Fix for defect #122687: Bypass VC++ v5 optimizer bug --- lib/liblayer/src/cl_comp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/liblayer/src/cl_comp.c b/lib/liblayer/src/cl_comp.c index 1a13badd51a4..c455a4277891 100644 --- a/lib/liblayer/src/cl_comp.c +++ b/lib/liblayer/src/cl_comp.c @@ -1484,8 +1484,15 @@ CL_ScrollCompositorWindow(CL_Compositor *compositor, LOCK_COMPOSITOR(compositor); +#if defined(XP_WIN) && _MSC_VER >= 1100 + /* Hack to avoid optimizer bug in VC++ v5 */ + delta_x = (compositor->x_offset != x_origin ) || + (compositor->y_offset != y_origin ); + if ( delta_x ) { +#else if ((compositor->x_offset != x_origin) || (compositor->y_offset != y_origin)) { +#endif /* Invalidate backing store. For better performance, perhaps we should be scrolling it, instead */