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

Comparing rxvt-unicode/src/xpm.C (file contents):
Revision 1.75 by ayin, Mon Aug 27 21:02:41 2007 UTC vs.
Revision 1.76 by sasha, Wed Sep 12 19:51:41 2007 UTC

94# ifdef XPM_BACKGROUND 94# ifdef XPM_BACKGROUND
95# ifdef HAVE_AFTERIMAGE 95# ifdef HAVE_AFTERIMAGE
96 if (original_asim != NULL) 96 if (original_asim != NULL)
97# endif 97# endif
98 { 98 {
99 if (h_scale != 0 || v_scale != 0) 99 if (h_scale != 0 || v_scale != 0
100 || h_align != 0 || v_align != 0)
100 return true; 101 return true;
101 } 102 }
102# endif 103# endif
103# ifdef ENABLE_TRANSPARENCY 104# ifdef ENABLE_TRANSPARENCY
104 if (flags & isTransparent) 105 if (flags & isTransparent)
114 return true; 115 return true;
115# endif 116# endif
116# ifdef ENABLE_TRANSPARENCY 117# ifdef ENABLE_TRANSPARENCY
117 if (flags & isTransparent) 118 if (flags & isTransparent)
118 { 119 {
119 if ((flags & blurNeeded) 120 if (((flags & blurNeeded) && !(flags & blurServerSide))
120 || ((flags & tintNeeded) && !(flags & tintServerSide))) 121 || ((flags & tintNeeded) && !(flags & tintServerSide)))
121 return true; 122 return true;
122 } 123 }
123# endif 124# endif
124 return false; 125 return false;
621{ 622{
622 int changed = 0; 623 int changed = 0;
623 unsigned int hr, vr; 624 unsigned int hr, vr;
624 int junk; 625 int junk;
625 int geom_flags = XParseGeometry (geom, &junk, &junk, &hr, &vr); 626 int geom_flags = XParseGeometry (geom, &junk, &junk, &hr, &vr);
627
626 if (!(geom_flags&WidthValue)) 628 if (!(geom_flags&WidthValue))
627 hr = 1; 629 hr = 1;
628 if (!(geom_flags&HeightValue)) 630 if (!(geom_flags&HeightValue))
629 vr = hr; 631 vr = hr;
630 632
631 if (h_blurRadius != hr) 633 if (h_blurRadius != hr)
632 { 634 {
633 ++changed; 635 ++changed;
634 h_blurRadius = hr; 636 h_blurRadius = hr;
635 } 637 }
638
636 if (v_blurRadius != vr) 639 if (v_blurRadius != vr)
637 { 640 {
638 ++changed; 641 ++changed;
639 v_blurRadius = vr; 642 v_blurRadius = vr;
640 } 643 }
644
641 if (v_blurRadius == 0 && h_blurRadius == 0) 645 if (v_blurRadius == 0 && h_blurRadius == 0)
642 flags &= ~blurNeeded; 646 flags &= ~blurNeeded;
643 else 647 else
644 flags |= blurNeeded; 648 flags |= blurNeeded;
649
645 return (changed>0); 650 return (changed>0);
646} 651}
647 652
648static inline unsigned long 653static inline unsigned long
649compute_tint_shade_flags (rxvt_color *tint, int shade) 654compute_tint_shade_flags (rxvt_color *tint, int shade)
676 if (flags & bgPixmap_t::tintNeeded) 681 if (flags & bgPixmap_t::tintNeeded)
677 { 682 {
678 if (flags & bgPixmap_t::tintWholesome) 683 if (flags & bgPixmap_t::tintWholesome)
679 flags |= bgPixmap_t::tintServerSide; 684 flags |= bgPixmap_t::tintServerSide;
680#if XFT 685#if XFT
681 /* TODO: add logic for XRENDER tinting */
682 flags |= bgPixmap_t::tintServerSide; 686 flags |= bgPixmap_t::tintServerSide;
683#endif 687#endif
684 } 688 }
685 689
686 return flags; 690 return flags;
727 flags = (flags & ~tintFlags) | new_flags; 731 flags = (flags & ~tintFlags) | new_flags;
728 return true; 732 return true;
729 } 733 }
730 return false; 734 return false;
731} 735}
732
733 736
734/* make_transparency_pixmap() 737/* make_transparency_pixmap()
735 * Builds a pixmap sized the same as terminal window, with depth same as the root window 738 * Builds a pixmap sized the same as terminal window, with depth same as the root window
736 * that pixmap contains tiled portion of the root pixmap that is supposed to be covered by 739 * that pixmap contains tiled portion of the root pixmap that is supposed to be covered by
737 * our window. 740 * our window.
770 {/* we want to validate the pixmap and get it's size at the same time : */ 773 {/* we want to validate the pixmap and get it's size at the same time : */
771 int junk; 774 int junk;
772 unsigned int ujunk; 775 unsigned int ujunk;
773 /* root pixmap may be bad - allow a error */ 776 /* root pixmap may be bad - allow a error */
774 target->allowedxerror = -1; 777 target->allowedxerror = -1;
778
775 if (!XGetGeometry (dpy, root_pixmap, &root, &junk, &junk, &root_pmap_width, &root_pmap_height, &ujunk, &ujunk)) 779 if (!XGetGeometry (dpy, root_pixmap, &root, &junk, &junk, &root_pmap_width, &root_pmap_height, &ujunk, &ujunk))
776 root_pixmap = None; 780 root_pixmap = None;
781
777 target->allowedxerror = 0; 782 target->allowedxerror = 0;
778 } 783 }
779 784
780 Pixmap tiled_root_pmap = XCreatePixmap (dpy, root, window_width, window_height, root_depth); 785 Pixmap tiled_root_pmap = XCreatePixmap (dpy, root, window_width, window_height, root_depth);
781 GC gc = NULL; 786 GC gc = NULL;
805 XEvent event; 810 XEvent event;
806 int ev_count = 0; 811 int ev_count = 0;
807 XGrabServer (dpy); 812 XGrabServer (dpy);
808 XMapRaised (dpy, src); 813 XMapRaised (dpy, src);
809 XSync (dpy, False); 814 XSync (dpy, False);
815
810 /* XSync should get window where it's properly exposed, 816 /* XSync should get window where it's properly exposed,
811 * but to be on the safe side - let's check for the actuall event to arrive : */ 817 * but to be on the safe side - let's check for the actuall event to arrive : */
812 while (XCheckWindowEvent (dpy, src, ExposureMask, &event)) 818 while (XCheckWindowEvent (dpy, src, ExposureMask, &event))
813 ++ev_count; 819 ++ev_count;
820
814 if (ev_count > 0); 821 if (ev_count > 0);
815 { /* hooray! - we can grab the image! */ 822 { /* hooray! - we can grab the image! */
816 gc = XCreateGC (dpy, root, 0, NULL); 823 gc = XCreateGC (dpy, root, 0, NULL);
817 if (gc) 824 if (gc)
818 { 825 {
822 } 829 }
823 XDestroyWindow (dpy, src); 830 XDestroyWindow (dpy, src);
824 XUngrabServer (dpy); 831 XUngrabServer (dpy);
825 //fprintf (stderr, "%s:%d: ev_count = %d\n", __FUNCTION__, __LINE__, ev_count); 832 //fprintf (stderr, "%s:%d: ev_count = %d\n", __FUNCTION__, __LINE__, ev_count);
826 } 833 }
834
827 if (!success) 835 if (!success)
828 { 836 {
829 XFreePixmap (dpy, tiled_root_pmap); 837 XFreePixmap (dpy, tiled_root_pmap);
830 tiled_root_pmap = None; 838 tiled_root_pmap = None;
831 } 839 }
834 } 842 }
835 else 843 else
836 {/* strightforward pixmap copy */ 844 {/* strightforward pixmap copy */
837 gcv.tile = root_pixmap; 845 gcv.tile = root_pixmap;
838 gcv.fill_style = FillTiled; 846 gcv.fill_style = FillTiled;
847
839 while (sx < 0) sx += (int)window_width; 848 while (sx < 0) sx += (int)window_width;
840 while (sy < 0) sy += (int)window_height; 849 while (sy < 0) sy += (int)window_height;
850
841 gcv.ts_x_origin = -sx; 851 gcv.ts_x_origin = -sx;
842 gcv.ts_y_origin = -sy; 852 gcv.ts_y_origin = -sy;
843 gc = XCreateGC (dpy, root, GCFillStyle | GCTile | GCTileStipXOrigin | GCTileStipYOrigin, &gcv); 853 gc = XCreateGC (dpy, root, GCFillStyle | GCTile | GCTileStipXOrigin | GCTileStipYOrigin, &gcv);
854
844 if (gc) 855 if (gc)
845 { 856 {
846 XFillRectangle (dpy, tiled_root_pmap, gc, 0, 0, window_width, window_height); 857 XFillRectangle (dpy, tiled_root_pmap, gc, 0, 0, window_width, window_height);
847 result |= transpPmapTiled; 858 result |= transpPmapTiled;
848 } 859 }
849 } 860 }
850 TIMING_TEST_PRINT_RESULT (tp); 861 TIMING_TEST_PRINT_RESULT (tp);
851 862
852 if (tiled_root_pmap != None) 863 if (tiled_root_pmap != None)
853 { 864 {
854 if ((flags & tintNeeded) && !need_client_side_rendering ()) 865 if (!need_client_side_rendering ())
866 {
867 if ((flags & tintNeeded))
855 { 868 {
856 if (flags & tintWholesome) 869 if (flags & tintWholesome)
857 { 870 {
858 /* In this case we can tint image server-side getting significant 871 /* In this case we can tint image server-side getting significant
859 * performance improvements, as we eliminate XImage transfer 872 * performance improvements, as we eliminate XImage transfer
860 */ 873 */
861 gcv.foreground = Pixel (tint); 874 gcv.foreground = Pixel (tint);
862 gcv.function = GXand; 875 gcv.function = GXand;
863 gcv.fill_style = FillSolid; 876 gcv.fill_style = FillSolid;
864 if (gc) 877 if (gc)
865 XChangeGC (dpy, gc, GCFillStyle | GCForeground | GCFunction, &gcv); 878 XChangeGC (dpy, gc, GCFillStyle | GCForeground | GCFunction, &gcv);
879 else
880 gc = XCreateGC (dpy, root, GCFillStyle | GCForeground | GCFunction, &gcv);
881 if (gc)
882 {
883 XFillRectangle (dpy, tiled_root_pmap, gc, 0, 0, window_width, window_height);
884 result |= transpPmapTinted;
885 }
886 }
866 else 887 else
867 gc = XCreateGC (dpy, root, GCFillStyle | GCForeground | GCFunction, &gcv);
868 if (gc)
869 { 888 {
870 XFillRectangle (dpy, tiled_root_pmap, gc, 0, 0, window_width, window_height); 889# if XFT
890 Picture back_pic = 0;
891 rgba c (rgba::MAX_CC,rgba::MAX_CC,rgba::MAX_CC);
892
893 if (flags & tintSet)
894 tint.get (c);
895
896 if (shade > 0 && shade < 100)
897 {
898 c.r = (c.r * shade) / 100;
899 c.g = (c.g * shade) / 100;
900 c.b = (c.b * shade) / 100;
901 }
902 else if( shade > 100 && shade < 200)
903 {
904 c.r = (c.r * (200 - shade)) / 100;
905 c.g = (c.g * (200 - shade)) / 100;
906 c.b = (c.b * (200 - shade)) / 100;
907 }
908
909 XRenderPictFormat pf;
910 pf.type = PictTypeDirect;
911 pf.depth = 32;
912 pf.direct.redMask = 0xff;
913 pf.direct.greenMask = 0xff;
914 pf.direct.blueMask = 0xff;
915 pf.direct.alphaMask = 0xff;
916
917 XRenderPictFormat *solid_format = XRenderFindFormat (dpy,
918 (PictFormatType|
919 PictFormatDepth|
920 PictFormatRedMask|
921 PictFormatGreenMask|
922 PictFormatBlueMask|
923 PictFormatAlphaMask),
924 &pf,
925 0);
926 XRenderPictFormat *root_format = XRenderFindVisualFormat (dpy, DefaultVisualOfScreen (ScreenOfDisplay (dpy, target->display->screen)));
927 XRenderPictureAttributes pa ;
928
929 back_pic = XRenderCreatePicture (dpy, tiled_root_pmap, root_format, 0, &pa);
930
931 pa.repeat = True;
932
933 Pixmap overlay_pmap = XCreatePixmap (dpy, root, 1, 1, 32);
934 Picture overlay_pic = XRenderCreatePicture (dpy, overlay_pmap, solid_format, CPRepeat, &pa);
935 XFreePixmap (dpy, overlay_pmap);
936
937 pa.component_alpha = True;
938 Pixmap mask_pmap = XCreatePixmap (dpy, root, 1, 1, 32);
939 Picture mask_pic = XRenderCreatePicture (dpy, mask_pmap, solid_format, CPRepeat|CPComponentAlpha, &pa);
940 XFreePixmap (dpy, mask_pmap);
941
942 if (mask_pic && overlay_pic && back_pic)
943 {
944 XRenderColor mask_c;
945
946 memset (&mask_c, (shade > 100) ? 0xFF : 0x0, sizeof (mask_c));
947 mask_c.alpha = 0xffff;
948 XRenderFillRectangle (dpy, PictOpSrc, overlay_pic, &mask_c, 0, 0, 1, 1);
949 memset (&mask_c, 0x0, sizeof (mask_c));
950 mask_c.alpha = 0;
951
952 if (c.r == c.b && c.b == c.g) /* pure shading */
953 {
954 mask_c.red = mask_c.green = mask_c.blue = 0xffff - c.r;
955 XRenderFillRectangle (dpy, PictOpSrc, mask_pic, &mask_c, 0, 0, 1, 1);
956 XRenderComposite (dpy, PictOpOver, overlay_pic, mask_pic, back_pic, 0, 0, 0, 0, 0, 0, window_width, window_height);
957 }
958 else
959 {
960 mask_c.red = 0xffff - c.r;
961 XRenderFillRectangle (dpy, PictOpSrc, mask_pic, &mask_c, 0, 0, 1, 1);
962 XRenderComposite (dpy, PictOpOver, overlay_pic, mask_pic, back_pic, 0, 0, 0, 0, 0, 0, window_width, window_height);
963 mask_c.red = 0;
964 mask_c.green = 0xffff - c.g;
965 XRenderFillRectangle (dpy, PictOpSrc, mask_pic, &mask_c, 0, 0, 1, 1);
966 XRenderComposite (dpy, PictOpOver, overlay_pic, mask_pic, back_pic, 0, 0, 0, 0, 0, 0, window_width, window_height);
967 mask_c.green = 0;
968 mask_c.blue = 0xffff - c.b;
969 XRenderFillRectangle (dpy, PictOpSrc, mask_pic, &mask_c, 0, 0, 1, 1);
970 XRenderComposite (dpy, PictOpOver, overlay_pic, mask_pic, back_pic, 0, 0, 0, 0, 0, 0, window_width, window_height);
971 }
871 result |= transpPmapTinted; 972 result |= transpPmapTinted;
973 }
974 XRenderFreePicture (dpy, mask_pic);
975 XRenderFreePicture (dpy, overlay_pic);
976 XRenderFreePicture (dpy, back_pic);
977# if DO_TIMING_TEST
978 XSync (dpy, False);
979# endif
980# endif
872 } 981 }
873 } 982 }
874 else 983 } /* server side rendering completed */
875 {
876#if XFT /* TODO : implement proper detection of XRENDER, as XFT may be present without XRENDER ! */
877 rgba c (rgba::MAX_CC,rgba::MAX_CC,rgba::MAX_CC);
878 if (flags & tintSet)
879 tint.get (c);
880 if (shade > 0 && shade < 100)
881 {
882 c.r = (c.r * shade) / 100;
883 c.g = (c.g * shade) / 100;
884 c.b = (c.b * shade) / 100;
885 }
886 else if( shade > 100 && shade < 200)
887 {
888 c.r = (c.r * (200 - shade)) / 100;
889 c.g = (c.g * (200 - shade)) / 100;
890 c.b = (c.b * (200 - shade)) / 100;
891 }
892 984
893 XRenderPictFormat pf;
894 pf.type = PictTypeDirect;
895 pf.depth = 32;
896 pf.direct.redMask = 0xff;
897 pf.direct.greenMask = 0xff;
898 pf.direct.blueMask = 0xff;
899 pf.direct.alphaMask = 0xff;
900
901 XRenderPictFormat *solid_format = XRenderFindFormat (dpy,
902 (PictFormatType|
903 PictFormatDepth|
904 PictFormatRedMask|
905 PictFormatGreenMask|
906 PictFormatBlueMask|
907 PictFormatAlphaMask),
908 &pf,
909 0);
910 XRenderPictFormat *root_format = XRenderFindVisualFormat (dpy, DefaultVisualOfScreen (ScreenOfDisplay (dpy, target->display->screen)));
911 XRenderPictureAttributes pa ;
912
913 Picture back_pic = XRenderCreatePicture (dpy, tiled_root_pmap, root_format, 0, &pa);
914
915 pa.repeat = True;
916
917 Pixmap overlay_pmap = XCreatePixmap (dpy, root, 1, 1, 32);
918 Picture overlay_pic = XRenderCreatePicture (dpy, overlay_pmap, solid_format, CPRepeat, &pa);
919 XFreePixmap (dpy, overlay_pmap);
920
921 pa.component_alpha = True;
922 Pixmap mask_pmap = XCreatePixmap (dpy, root, 1, 1, 32);
923 Picture mask_pic = XRenderCreatePicture (dpy, mask_pmap, solid_format, CPRepeat|CPComponentAlpha, &pa);
924 XFreePixmap (dpy, mask_pmap);
925
926 if (mask_pic && overlay_pic && back_pic)
927 {
928 XRenderColor mask_c;
929
930 memset (&mask_c, (shade > 100) ? 0xFF : 0x0, sizeof(mask_c));
931 mask_c.alpha = 0xffff;
932 XRenderFillRectangle (dpy, PictOpSrc, overlay_pic, &mask_c, 0, 0, 1, 1);
933 memset (&mask_c, 0x0, sizeof(mask_c));
934 mask_c.alpha = 0;
935 if (c.r == c.b && c.b == c.g) /* pure shading */
936 {
937 mask_c.red = mask_c.green = mask_c.blue = 0xffff-c.r;
938 XRenderFillRectangle (dpy, PictOpSrc, mask_pic, &mask_c, 0, 0, 1, 1);
939 XRenderComposite (dpy, PictOpOver, overlay_pic, mask_pic, back_pic, 0, 0, 0, 0, 0, 0, window_width, window_height);
940 }
941 else
942 {
943 mask_c.red = 0xffff-c.r;
944 XRenderFillRectangle (dpy, PictOpSrc, mask_pic, &mask_c, 0, 0, 1, 1);
945 XRenderComposite (dpy, PictOpOver, overlay_pic, mask_pic, back_pic, 0, 0, 0, 0, 0, 0, window_width, window_height);
946 mask_c.red = 0;
947 mask_c.green = 0xffff-c.g;
948 XRenderFillRectangle (dpy, PictOpSrc, mask_pic, &mask_c, 0, 0, 1, 1);
949 XRenderComposite (dpy, PictOpOver, overlay_pic, mask_pic, back_pic, 0, 0, 0, 0, 0, 0, window_width, window_height);
950 mask_c.green = 0;
951 mask_c.blue = 0xffff-c.b;
952 XRenderFillRectangle (dpy, PictOpSrc, mask_pic, &mask_c, 0, 0, 1, 1);
953 XRenderComposite (dpy, PictOpOver, overlay_pic, mask_pic, back_pic, 0, 0, 0, 0, 0, 0, window_width, window_height);
954 }
955 result |= transpPmapTinted;
956 }
957 XRenderFreePicture (dpy, mask_pic);
958 XRenderFreePicture (dpy, overlay_pic);
959 XRenderFreePicture (dpy, back_pic);
960#endif
961 }
962 }
963 if (pixmap) 985 if (pixmap)
964 XFreePixmap (dpy, pixmap); 986 XFreePixmap (dpy, pixmap);
987
965 pixmap = tiled_root_pmap; 988 pixmap = tiled_root_pmap;
966 pmap_width = window_width; 989 pmap_width = window_width;
967 pmap_height = window_height; 990 pmap_height = window_height;
968 pmap_depth = root_depth; 991 pmap_depth = root_depth;
969 } 992 }
1079 tint.get (c); 1102 tint.get (c);
1080 ShadeXImage (target, result, shade, c.r, c.g, c.b); 1103 ShadeXImage (target, result, shade, c.r, c.g, c.b);
1081 } 1104 }
1082 } 1105 }
1083# endif /* HAVE_AFTERIMAGE */ 1106# endif /* HAVE_AFTERIMAGE */
1107
1084 if (result != NULL) 1108 if (result != NULL)
1085 { 1109 {
1086 GC gc = XCreateGC (target->dpy, target->vt, 0UL, NULL); 1110 GC gc = XCreateGC (target->dpy, target->vt, 0UL, NULL);
1087 if (gc) 1111 if (gc)
1088 { 1112 {
1149void 1173void
1150bgPixmap_t::apply() 1174bgPixmap_t::apply()
1151{ 1175{
1152 if (target) 1176 if (target)
1153 { 1177 {
1178 flags &= ~isVtOrigin;
1154 if (pixmap != None) 1179 if (pixmap != None)
1155 { /* set target's background to pixmap */ 1180 { /* set target's background to pixmap */
1156# ifdef ENABLE_TRANSPARENCY 1181# ifdef ENABLE_TRANSPARENCY
1157 if (flags & isTransparent) 1182 if (flags & isTransparent)
1158 { 1183 {
1164# endif 1189# endif
1165 } 1190 }
1166 else 1191 else
1167# endif 1192# endif
1168 { 1193 {
1194 flags |= isVtOrigin;
1169 /* force old pixmap dereference in case it was transparent before :*/ 1195 /* force old pixmap dereference in case it was transparent before :*/
1170 XSetWindowBackground (target->dpy, target->parent[0], target->pix_colors[Color_border]); 1196 XSetWindowBackground (target->dpy, target->parent[0], target->pix_colors[Color_border]);
1171 XSetWindowBackgroundPixmap (target->dpy, target->vt, pixmap); 1197 XSetWindowBackgroundPixmap (target->dpy, target->vt, pixmap);
1172 /* do we also need to set scrollbar's background here ? */ 1198 /* do we also need to set scrollbar's background here ? */
1173# if HAVE_SCROLLBARS 1199# if HAVE_SCROLLBARS
1184# if HAVE_SCROLLBARS 1210# if HAVE_SCROLLBARS
1185 if (target->scrollBar.win) 1211 if (target->scrollBar.win)
1186 XSetWindowBackground (target->dpy, target->scrollBar.win, target->pix_colors[Color_border]); 1212 XSetWindowBackground (target->dpy, target->scrollBar.win, target->pix_colors[Color_border]);
1187# endif 1213# endif
1188 } 1214 }
1215
1189 /* don't want Expose on the parent */ 1216 /* don't want Expose on the parent */
1190 XClearArea (target->dpy, target->parent[0], 0, 0, 0, 0, False); 1217 XClearArea (target->dpy, target->parent[0], 0, 0, 0, 0, False);
1191 /* do want Expose on the vt */ 1218 /* do want Expose on the vt, so we get refreshed properly */
1192 XClearArea (target->dpy, target->parent[0], 0, 0, 0, 0, True); 1219 XClearArea (target->dpy, target->vt, 0, 0, 0, 0, True);
1220
1193# if HAVE_SCROLLBARS 1221# if HAVE_SCROLLBARS
1194 if (target->scrollBar.win) 1222 if (target->scrollBar.win)
1195 { 1223 {
1196 target->scrollBar.setIdle (); 1224 target->scrollBar.setIdle ();
1197 target->scrollbar_show (0); 1225 target->scrollbar_show (0);
1198 } 1226 }
1199# endif 1227# endif
1200 /* Is that really neccessary? we did a XClearArea to generate Expose events alreday ! */
1201 target->want_refresh = 1;
1202# ifdef ENABLE_TRANSPARENCY
1203 target->want_full_refresh = 1;
1204# endif
1205 /* TODO: why do we need a flush here ??? It causes segfault on resize ! */
1206// target->flush ();
1207 } 1228 }
1208} 1229}
1209 1230
1210void 1231void
1211rxvt_term::get_window_origin (int &x, int &y) 1232rxvt_term::get_window_origin (int &x, int &y)
1242 */ 1263 */
1243int 1264int
1244rxvt_term::update_background () 1265rxvt_term::update_background ()
1245{ 1266{
1246 bgPixmap.invalidate(); 1267 bgPixmap.invalidate();
1268
1247 /* no chance of real time refresh if we are blurring ! */ 1269 /* no chance of real time refresh if we are blurring ! */
1248 if (bgPixmap.invalid_since + 0.5 < NOW && !(bgPixmap.flags & bgPixmap_t::blurNeeded)) 1270 if (bgPixmap.invalid_since + 0.5 < NOW && !(bgPixmap.flags & bgPixmap_t::blurNeeded))
1249 bgPixmap.render(); 1271 bgPixmap.render();
1250 else 1272 else
1251 { 1273 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines