ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/background.C
(Generate patch)

Comparing rxvt-unicode/src/background.C (file contents):
Revision 1.14 by root, Mon Nov 19 15:33:34 2007 UTC vs.
Revision 1.23 by ayin, Sat Jan 5 13:52:23 2008 UTC

1/*----------------------------------------------------------------------* 1/*----------------------------------------------------------------------*
2 * File: background.C - former xpm.C 2 * File: background.C - former xpm.C
3 *----------------------------------------------------------------------* 3 *----------------------------------------------------------------------*
4 * 4 *
5 * All portions of code are copyright by their respective author/s. 5 * All portions of code are copyright by their respective author/s.
6 * Copyright (c) 1997 Carsten Haitzler <raster@zip.com.au>
7 * Copyright (c) 1997,1998 Oezguer Kesim <kesim@math.fu-berlin.de>
8 * Copyright (c) 1998-2001 Geoff Wing <gcw@pobox.com>
9 * Copyright (c) 2005-2006 Marc Lehmann <pcg@goof.com> 6 * Copyright (c) 2005-2006 Marc Lehmann <pcg@goof.com>
10 * Copyright (c) 2007 Sasha Vasko <sasha@aftercode.net> 7 * Copyright (c) 2007 Sasha Vasko <sasha@aftercode.net>
11 * 8 *
12 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by 10 * it under the terms of the GNU General Public License as published by
28#include "rxvt.h" /* NECESSARY */ 25#include "rxvt.h" /* NECESSARY */
29 26
30#define DO_TIMING_TEST 0 27#define DO_TIMING_TEST 0
31 28
32#if DO_TIMING_TEST 29#if DO_TIMING_TEST
30# include <sys/time.h>
33#define TIMING_TEST_START(id) \ 31#define TIMING_TEST_START(id) \
34 struct timeval timing_test_##id##_stv;\ 32 struct timeval timing_test_##id##_stv;\
35 gettimeofday (&timing_test_##id##_stv, NULL); 33 gettimeofday (&timing_test_##id##_stv, NULL);
36 34
37#define TIMING_TEST_PRINT_RESULT(id) \ 35#define TIMING_TEST_PRINT_RESULT(id) \
98 h_scale = v_scale = 0; 96 h_scale = v_scale = 0;
99 h_align = v_align = 0; 97 h_align = v_align = 0;
100#endif 98#endif
101 flags = 0; 99 flags = 0;
102 pixmap = None; 100 pixmap = None;
101 valid_since = invalid_since = 0;
103} 102}
104 103
105void 104void
106bgPixmap_t::destroy () 105bgPixmap_t::destroy ()
107{ 106{
258 int x = 0, y = 0; 257 int x = 0, y = 0;
259 unsigned int w = 0, h = 0; 258 unsigned int w = 0, h = 0;
260 unsigned int n; 259 unsigned int n;
261 unsigned long new_flags = (flags & (~geometryFlags)); 260 unsigned long new_flags = (flags & (~geometryFlags));
262 char *p; 261 char *p;
263# define MAXLEN_GEOM 256 /* could be longer then regular geometry string */ 262# define MAXLEN_GEOM 256 /* could be longer than regular geometry string */
264 263
265 if (geom == NULL) 264 if (geom == NULL)
266 return false; 265 return false;
267 266
268 char str[MAXLEN_GEOM]; 267 char str[MAXLEN_GEOM];
305 y = x; 304 y = x;
306 geom_flags |= YValue; 305 geom_flags |= YValue;
307 } 306 }
308 307
309 if (flags & geometrySet) 308 if (flags & geometrySet)
309 {
310 {/* new geometry is an adjustment to the old one ! */ 310 /* new geometry is an adjustment to the old one ! */
311 if ((geom_flags & WidthValue) && (geom_flags & HeightValue)) 311 if ((geom_flags & WidthValue) && (geom_flags & HeightValue))
312 { 312 {
313 if (w == 0 && h != 0) 313 if (w == 0 && h != 0)
314 { 314 {
315 w = h_scale; 315 w = h_scale;
331 } 331 }
332 } 332 }
333 else /* setting up geometry from scratch */ 333 else /* setting up geometry from scratch */
334 { 334 {
335 if (!(geom_flags & XValue)) 335 if (!(geom_flags & XValue))
336 {
336 {/* use default geometry - centered */ 337 /* use default geometry - centered */
337 x = y = defaultAlign; 338 x = y = defaultAlign;
338 } 339 }
339 else if (!(geom_flags & YValue)) 340 else if (!(geom_flags & YValue))
340 y = x; 341 y = x;
341 342
342 if ((geom_flags & (WidthValue|HeightValue)) == 0) 343 if ((geom_flags & (WidthValue|HeightValue)) == 0)
344 {
343 {/* use default geometry - scaled */ 345 /* use default geometry - scaled */
344 w = h = defaultScale; 346 w = h = defaultScale;
345 } 347 }
346 else if (geom_flags & WidthValue) 348 else if (geom_flags & WidthValue)
347 { 349 {
348 if (!(geom_flags & HeightValue)) 350 if (!(geom_flags & HeightValue))
351 else 353 else
352 w = h; 354 w = h;
353 } 355 }
354 } /* done parsing geometry string */ 356 } /* done parsing geometry string */
355 else if (!(flags & geometrySet)) 357 else if (!(flags & geometrySet))
358 {
356 { /* default geometry - scaled and centered */ 359 /* default geometry - scaled and centered */
357 x = y = defaultAlign; 360 x = y = defaultAlign;
358 w = h = defaultScale; 361 w = h = defaultScale;
359 } 362 }
360 363
361 if (!(flags & geometrySet)) 364 if (!(flags & geometrySet))
433 if (new_flags != flags) 436 if (new_flags != flags)
434 { 437 {
435 flags = new_flags; 438 flags = new_flags;
436 changed++; 439 changed++;
437 } 440 }
438//fprintf( stderr, "flags = %lX, scale = %ux%u, align=%+d%+d\n", 441//fprintf (stderr, "flags = %lX, scale = %ux%u, align=%+d%+d\n",
439// flags, h_scale, v_scale, h_align, v_align); 442// flags, h_scale, v_scale, h_align, v_align);
440 return (changed > 0); 443 return (changed > 0);
441} 444}
442 445
443# ifdef HAVE_AFTERIMAGE 446# ifdef HAVE_AFTERIMAGE
507 h > 0 ? h : original_asim->height, 510 h > 0 ? h : original_asim->height,
508 background ? ASA_ASImage : ASA_XImage, 511 background ? ASA_ASImage : ASA_XImage,
509 100, ASIMAGE_QUALITY_DEFAULT); 512 100, ASIMAGE_QUALITY_DEFAULT);
510 } 513 }
511 if (background == NULL) 514 if (background == NULL)
515 {
512 {/* if tiling - pixmap has to be sized exactly as the image, 516 /* if tiling - pixmap has to be sized exactly as the image,
513 but there is no need to make it bigger then the window! */ 517 but there is no need to make it bigger than the window! */
514 if (h_scale == 0) 518 if (h_scale == 0)
515 new_pmap_width = min (result->width, target_width); 519 new_pmap_width = min (result->width, target_width);
516 if (v_scale == 0) 520 if (v_scale == 0)
517 new_pmap_height = min (result->height, target_height); 521 new_pmap_height = min (result->height, target_height);
518 /* we also need to tile our image in one or both directions */ 522 /* we also need to tile our image in one or both directions */
532 result = tmp; 536 result = tmp;
533 } 537 }
534 } 538 }
535 } 539 }
536 else 540 else
541 {
537 {/* if blending background and image - pixmap has to be sized same as target window */ 542 /* if blending background and image - pixmap has to be sized same as target window */
538 ASImageLayer *layers = create_image_layers (2); 543 ASImageLayer *layers = create_image_layers (2);
539 ASImage *merged_im = NULL; 544 ASImage *merged_im = NULL;
540 545
541 layers[0].im = background; 546 layers[0].im = background;
542 layers[0].clip_width = target_width; 547 layers[0].clip_width = target_width;
543 layers[0].clip_height = target_height; 548 layers[0].clip_height = target_height;
544 layers[0].tint = background_tint; 549 layers[0].tint = background_tint;
545 layers[1].im = result; 550 layers[1].im = result;
546 if (w <= 0) 551 if (w <= 0)
552 {
547 {/* tile horizontally */ 553 /* tile horizontally */
548 while (x > 0) x -= (int)result->width; 554 while (x > 0) x -= (int)result->width;
549 layers[1].dst_x = x; 555 layers[1].dst_x = x;
550 layers[1].clip_width = result->width+target_width; 556 layers[1].clip_width = result->width+target_width;
551 } 557 }
552 else 558 else
559 {
553 {/* clip horizontally */ 560 /* clip horizontally */
554 layers[1].dst_x = x; 561 layers[1].dst_x = x;
555 layers[1].clip_width = result->width; 562 layers[1].clip_width = result->width;
556 } 563 }
557 if (h <= 0) 564 if (h <= 0)
558 { 565 {
773 unsigned long new_flags = compute_tint_shade_flags (&new_tint, shade); 780 unsigned long new_flags = compute_tint_shade_flags (&new_tint, shade);
774 tint = new_tint; 781 tint = new_tint;
775 flags = (flags & ~tintFlags) | new_flags | tintSet; 782 flags = (flags & ~tintFlags) | new_flags | tintSet;
776 return true; 783 return true;
777 } 784 }
785
778 return false; 786 return false;
779} 787}
780 788
781bool 789bool
782bgPixmap_t::unset_tint () 790bgPixmap_t::unset_tint ()
786 if (new_flags != (flags & tintFlags)) 794 if (new_flags != (flags & tintFlags))
787 { 795 {
788 flags = (flags&~tintFlags)|new_flags; 796 flags = (flags&~tintFlags)|new_flags;
789 return true; 797 return true;
790 } 798 }
799
791 return false; 800 return false;
792} 801}
793 802
794bool 803bool
795bgPixmap_t::set_shade (const char *shade_str) 804bgPixmap_t::set_shade (const char *shade_str)
796{ 805{
797 int new_shade = (shade_str) ? atoi (shade_str) : 0; 806 int new_shade = (shade_str) ? atoi (shade_str) : 0;
798 807
799 if (new_shade < 0 && new_shade > -100) 808 if (new_shade < 0 && new_shade > -100)
800 new_shade = 200 - (100 + new_shade); 809 new_shade = 200 - (100 + new_shade);
801 else if (new_shade == 100) 810 else if (new_shade == 100)
802 new_shade = 0; 811 new_shade = 0;
803 812
804 if (new_shade != shade) 813 if (new_shade != shade)
805 { 814 {
806 unsigned long new_flags = compute_tint_shade_flags ((flags & tintSet) ? &tint : NULL, new_shade); 815 unsigned long new_flags = compute_tint_shade_flags ((flags & tintSet) ? &tint : NULL, new_shade);
807 shade = new_shade; 816 shade = new_shade;
808 flags = (flags & (~tintFlags | tintSet)) | new_flags; 817 flags = (flags & (~tintFlags | tintSet)) | new_flags;
809 return true; 818 return true;
810 } 819 }
820
811 return false; 821 return false;
812} 822}
813 823
814/* make_transparency_pixmap() 824/* make_transparency_pixmap()
815 * Builds a pixmap sized the same as terminal window, with depth same as the root window 825 * Builds a pixmap sized the same as terminal window, with depth same as the root window
845 if (sx + window_width <= 0 || sy + window_height <= 0 855 if (sx + window_width <= 0 || sy + window_height <= 0
846 || sx >= root_width || sy >= root_height) 856 || sx >= root_width || sy >= root_height)
847 return 0; 857 return 0;
848 858
849 if (root_pixmap != None) 859 if (root_pixmap != None)
860 {
850 {/* we want to validate the pixmap and get it's size at the same time : */ 861 /* we want to validate the pixmap and get it's size at the same time : */
851 int junk; 862 int junk;
852 unsigned int ujunk; 863 unsigned int ujunk;
853 /* root pixmap may be bad - allow a error */ 864 /* root pixmap may be bad - allow a error */
854 target->allowedxerror = -1; 865 target->allowedxerror = -1;
855 866
864 875
865 if (tiled_root_pmap == None) /* something really bad happened - abort */ 876 if (tiled_root_pmap == None) /* something really bad happened - abort */
866 return 0; 877 return 0;
867 878
868 if (root_pixmap == None) 879 if (root_pixmap == None)
880 {
869 { /* use tricks to obtain the root background image :*/ 881 /* use tricks to obtain the root background image :*/
870 /* we want to create Overrideredirect window overlapping out window 882 /* we want to create Overrideredirect window overlapping out window
871 with background type of Parent Relative and then grab it */ 883 with background type of Parent Relative and then grab it */
872 XSetWindowAttributes attr; 884 XSetWindowAttributes attr;
873 Window src; 885 Window src;
874 bool success = false; 886 bool success = false;
889 XGrabServer (dpy); 901 XGrabServer (dpy);
890 XMapRaised (dpy, src); 902 XMapRaised (dpy, src);
891 XSync (dpy, False); 903 XSync (dpy, False);
892 904
893 /* XSync should get window where it's properly exposed, 905 /* XSync should get window where it's properly exposed,
894 * but to be on the safe side - let's check for the actuall event to arrive : */ 906 * but to be on the safe side - let's check for the actual event to arrive : */
895 while (XCheckWindowEvent (dpy, src, ExposureMask, &event)) 907 while (XCheckWindowEvent (dpy, src, ExposureMask, &event))
896 ++ev_count; 908 ++ev_count;
897 909
898 if (ev_count > 0); 910 if (ev_count > 0);
911 {
899 { /* hooray! - we can grab the image! */ 912 /* hooray! - we can grab the image! */
900 gc = XCreateGC (dpy, root, 0, NULL); 913 gc = XCreateGC (dpy, root, 0, NULL);
901 if (gc) 914 if (gc)
902 { 915 {
903 XCopyArea (dpy, src, tiled_root_pmap, gc, 0, 0, window_width, window_height, 0, 0); 916 XCopyArea (dpy, src, tiled_root_pmap, gc, 0, 0, window_width, window_height, 0, 0);
904 success = true; 917 success = true;
905 } 918 }
906 } 919 }
920
907 XDestroyWindow (dpy, src); 921 XDestroyWindow (dpy, src);
908 XUngrabServer (dpy); 922 XUngrabServer (dpy);
909 //fprintf (stderr, "%s:%d: ev_count = %d\n", __FUNCTION__, __LINE__, ev_count); 923 //fprintf (stderr, "%s:%d: ev_count = %d\n", __FUNCTION__, __LINE__, ev_count);
910 } 924 }
911 925
916 } 930 }
917 else 931 else
918 result |= transpPmapTiled; 932 result |= transpPmapTiled;
919 } 933 }
920 else 934 else
935 {
921 {/* strightforward pixmap copy */ 936 /* strightforward pixmap copy */
922 gcv.tile = root_pixmap; 937 gcv.tile = root_pixmap;
923 gcv.fill_style = FillTiled; 938 gcv.fill_style = FillTiled;
924 939
925 while (sx < 0) sx += (int)root_width; 940 while (sx < 0) sx += (int)root_width;
926 while (sy < 0) sy += (int)root_height; 941 while (sy < 0) sy += (int)root_height;
974 { 989 {
975 c.r = (c.r * shade) / 100; 990 c.r = (c.r * shade) / 100;
976 c.g = (c.g * shade) / 100; 991 c.g = (c.g * shade) / 100;
977 c.b = (c.b * shade) / 100; 992 c.b = (c.b * shade) / 100;
978 } 993 }
979 else if( shade > 100 && shade < 200) 994 else if (shade > 100 && shade < 200)
980 { 995 {
981 c.r = (c.r * (200 - shade)) / 100; 996 c.r = (c.r * (200 - shade)) / 100;
982 c.g = (c.g * (200 - shade)) / 100; 997 c.g = (c.g * (200 - shade)) / 100;
983 c.b = (c.b * (200 - shade)) / 100; 998 c.b = (c.b * (200 - shade)) / 100;
984 } 999 }
1030 mask_c.blue = 0xffff - c.b; 1045 mask_c.blue = 0xffff - c.b;
1031 XRenderFillRectangle (dpy, PictOpSrc, mask_pic, &mask_c, 0, 0, 1, 1); 1046 XRenderFillRectangle (dpy, PictOpSrc, mask_pic, &mask_c, 0, 0, 1, 1);
1032 XRenderComposite (dpy, PictOpOver, overlay_pic, mask_pic, back_pic, 0, 0, 0, 0, 0, 0, window_width, window_height); 1047 XRenderComposite (dpy, PictOpOver, overlay_pic, mask_pic, back_pic, 0, 0, 0, 0, 0, 0, window_width, window_height);
1033 result |= transpPmapTinted; 1048 result |= transpPmapTinted;
1034 } 1049 }
1050
1035 XRenderFreePicture (dpy, mask_pic); 1051 XRenderFreePicture (dpy, mask_pic);
1036 XRenderFreePicture (dpy, overlay_pic); 1052 XRenderFreePicture (dpy, overlay_pic);
1037 XRenderFreePicture (dpy, back_pic); 1053 XRenderFreePicture (dpy, back_pic);
1038# if DO_TIMING_TEST 1054# if DO_TIMING_TEST
1039 XSync (dpy, False); 1055 XSync (dpy, False);
1061} 1077}
1062 1078
1063bool 1079bool
1064bgPixmap_t::set_root_pixmap () 1080bgPixmap_t::set_root_pixmap ()
1065{ 1081{
1066 Pixmap new_root_pixmap = None;
1067
1068 new_root_pixmap = target->get_pixmap_property (XA_XROOTPMAP_ID); 1082 Pixmap new_root_pixmap = target->get_pixmap_property (XA_XROOTPMAP_ID);
1069 if (new_root_pixmap == None) 1083 if (new_root_pixmap == None)
1070 new_root_pixmap = target->get_pixmap_property (XA_ESETROOT_PMAP_ID); 1084 new_root_pixmap = target->get_pixmap_property (XA_ESETROOT_PMAP_ID);
1071 1085
1072 if (new_root_pixmap != root_pixmap) 1086 if (new_root_pixmap != root_pixmap)
1073 { 1087 {
1074 root_pixmap = new_root_pixmap; 1088 root_pixmap = new_root_pixmap;
1075 return true; 1089 return true;
1076 } 1090 }
1091
1077 return false; 1092 return false;
1078} 1093}
1079# endif /* ENABLE_TRANSPARENCY */ 1094# endif /* ENABLE_TRANSPARENCY */
1080 1095
1081# ifndef HAVE_AFTERIMAGE 1096# ifndef HAVE_AFTERIMAGE
1082static void ShadeXImage(rxvt_term *term, XImage* srcImage, int shade, int rm, int gm, int bm); 1097static void ShadeXImage(rxvt_term *term, XImage* srcImage, int shade, int rm, int gm, int bm);
1083# endif 1098# endif
1084
1085 1099
1086bool 1100bool
1087bgPixmap_t::render () 1101bgPixmap_t::render ()
1088{ 1102{
1089 unsigned long background_flags = 0; 1103 unsigned long background_flags = 0;
1171 ShadeXImage (target, result, shade, c.r, c.g, c.b); 1185 ShadeXImage (target, result, shade, c.r, c.g, c.b);
1172 } 1186 }
1173 } 1187 }
1174# endif /* HAVE_AFTERIMAGE */ 1188# endif /* HAVE_AFTERIMAGE */
1175 1189
1176 if (result != NULL) 1190 if (result)
1177 { 1191 {
1178 GC gc = XCreateGC (target->dpy, target->vt, 0UL, NULL); 1192 GC gc = XCreateGC (target->dpy, target->vt, 0UL, NULL);
1193
1179 if (gc) 1194 if (gc)
1180 { 1195 {
1181 if (/*pmap_depth != target->depth &&*/ pixmap != None) 1196 if (/*pmap_depth != target->depth &&*/ pixmap != None)
1182 { 1197 {
1183 XFreePixmap (target->dpy, pixmap); 1198 XFreePixmap (target->dpy, pixmap);
1184 pixmap = None; 1199 pixmap = None;
1185 } 1200 }
1201
1186 if (pixmap == None) 1202 if (pixmap == None)
1187 { 1203 {
1188 pixmap = XCreatePixmap (target->dpy, target->vt, result->width, result->height, target->depth); 1204 pixmap = XCreatePixmap (target->dpy, target->vt, result->width, result->height, target->depth);
1189 pmap_width = result->width; 1205 pmap_width = result->width;
1190 pmap_height = result->height; 1206 pmap_height = result->height;
1191 pmap_depth = target->depth; 1207 pmap_depth = target->depth;
1192 } 1208 }
1209
1193 if (pmap_depth != result->depth) 1210 if (pmap_depth != result->depth)
1211 {
1194 { /* Bad Match error will ensue ! stupid X !!!! */ 1212 /* Bad Match error will ensue ! stupid X !!!! */
1195 if( result->depth == 24 && pmap_depth == 32) 1213 if (result->depth == 24 && pmap_depth == 32)
1196 result->depth = 32; 1214 result->depth = 32;
1197 else if( result->depth == 32 && pmap_depth == 24) 1215 else if (result->depth == 32 && pmap_depth == 24)
1198 result->depth = 24; 1216 result->depth = 24;
1199 else 1217 else
1200 { 1218 {
1201 /* TODO: implement image recoding */ 1219 /* TODO: implement image recoding */
1202 } 1220 }
1203 } 1221 }
1222
1204 if (pmap_depth == result->depth) 1223 if (pmap_depth == result->depth)
1205 XPutImage (target->dpy, pixmap, gc, result, 0, 0, 0, 0, result->width, result->height); 1224 XPutImage (target->dpy, pixmap, gc, result, 0, 0, 0, 0, result->width, result->height);
1225
1206 XFreeGC (target->dpy, gc); 1226 XFreeGC (target->dpy, gc);
1207 flags = flags & ~isInvalid; 1227 flags = flags & ~isInvalid;
1208 } 1228 }
1229
1209 XDestroyImage (result); 1230 XDestroyImage (result);
1210 } 1231 }
1211 1232
1212 if (flags & isInvalid) 1233 if (flags & isInvalid)
1213 { 1234 {
1217 pixmap = None; 1238 pixmap = None;
1218 } 1239 }
1219 } 1240 }
1220 1241
1221 apply (); 1242 apply ();
1243
1244 XSync (target->dpy, False);
1245 valid_since = ev::now ();
1222 1246
1223 TIMING_TEST_PRINT_RESULT (tp); 1247 TIMING_TEST_PRINT_RESULT (tp);
1224 1248
1225 return true; 1249 return true;
1226} 1250}
1239 } 1263 }
1240 return false; 1264 return false;
1241} 1265}
1242 1266
1243void 1267void
1244bgPixmap_t::apply() 1268bgPixmap_t::apply ()
1245{ 1269{
1246 if (target) 1270 if (target)
1247 { 1271 {
1248 flags &= ~isVtOrigin; 1272 flags &= ~isVtOrigin;
1249 if (pixmap != None) 1273 if (pixmap != None)
1274 {
1250 { /* set target's background to pixmap */ 1275 /* set target's background to pixmap */
1251# ifdef ENABLE_TRANSPARENCY 1276# ifdef ENABLE_TRANSPARENCY
1252 if (flags & isTransparent) 1277 if (flags & isTransparent)
1253 { 1278 {
1254 XSetWindowBackgroundPixmap (target->dpy, target->parent[0], pixmap); 1279 XSetWindowBackgroundPixmap (target->dpy, target->parent[0], pixmap);
1255 XSetWindowBackgroundPixmap (target->dpy, target->vt, ParentRelative); 1280 XSetWindowBackgroundPixmap (target->dpy, target->vt, ParentRelative);
1271 XSetWindowBackground (target->dpy, target->scrollBar.win, target->pix_colors[Color_border]); 1296 XSetWindowBackground (target->dpy, target->scrollBar.win, target->pix_colors[Color_border]);
1272# endif 1297# endif
1273 } 1298 }
1274 } 1299 }
1275 else 1300 else
1301 {
1276 { /* set target background to a pixel */ 1302 /* set target background to a pixel */
1277 XSetWindowBackground (target->dpy, target->parent[0], target->pix_colors[Color_border]); 1303 XSetWindowBackground (target->dpy, target->parent[0], target->pix_colors[Color_border]);
1278 XSetWindowBackground (target->dpy, target->vt, target->pix_colors[Color_bg]); 1304 XSetWindowBackground (target->dpy, target->vt, target->pix_colors[Color_bg]);
1279 /* do we also need to set scrollbar's background here ? */ 1305 /* do we also need to set scrollbar's background here ? */
1280# if HAVE_SCROLLBARS 1306# if HAVE_SCROLLBARS
1281 if (target->scrollBar.win) 1307 if (target->scrollBar.win)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines