… | |
… | |
1082 | #ifdef HAVE_BG_PIXMAP |
1082 | #ifdef HAVE_BG_PIXMAP |
1083 | void bg_init (); |
1083 | void bg_init (); |
1084 | void bg_destroy (); |
1084 | void bg_destroy (); |
1085 | |
1085 | |
1086 | enum { |
1086 | enum { |
1087 | //subset returned by make_transparency_pixmap |
|
|
1088 | BG_IS_VALID = 1 << 0, |
1087 | BG_IS_VALID = 1 << 0, |
1089 | BG_NEEDS_TINT = 1 << 1, |
1088 | BG_NEEDS_TINT = 1 << 1, |
1090 | BG_NEEDS_BLUR = 1 << 2, |
1089 | BG_NEEDS_BLUR = 1 << 2, |
1091 | |
1090 | |
1092 | BG_EFFECTS_FLAGS = BG_NEEDS_TINT | BG_NEEDS_BLUR, |
1091 | BG_EFFECTS_FLAGS = BG_NEEDS_TINT | BG_NEEDS_BLUR, |
… | |
… | |
1112 | |
1111 | |
1113 | unsigned int bg_flags; |
1112 | unsigned int bg_flags; |
1114 | |
1113 | |
1115 | # ifdef BG_IMAGE_FROM_FILE |
1114 | # ifdef BG_IMAGE_FROM_FILE |
1116 | void get_image_geometry (int image_width, int image_height, int &w, int &h, int &x, int &y); |
1115 | void get_image_geometry (int image_width, int image_height, int &w, int &h, int &x, int &y); |
1117 | bool render_image (unsigned long tr_flags); |
1116 | bool render_image (bool transparent); |
1118 | |
1117 | |
1119 | enum { |
1118 | enum { |
1120 | noScale = 0, |
1119 | noScale = 0, |
1121 | windowScale = 100, |
1120 | windowScale = 100, |
1122 | defaultScale = windowScale, |
1121 | defaultScale = windowScale, |
… | |
… | |
1152 | bool bg_set_blur (const char *geom); |
1151 | bool bg_set_blur (const char *geom); |
1153 | |
1152 | |
1154 | bool blur_pixmap (Pixmap pixmap, Visual *visual, int width, int height, int depth); |
1153 | bool blur_pixmap (Pixmap pixmap, Visual *visual, int width, int height, int depth); |
1155 | bool tint_pixmap (Pixmap pixmap, Visual *visual, int width, int height); |
1154 | bool tint_pixmap (Pixmap pixmap, Visual *visual, int width, int height); |
1156 | void tint_ximage (Visual *visual, XImage *ximage); |
1155 | void tint_ximage (Visual *visual, XImage *ximage); |
1157 | unsigned long make_transparency_pixmap (); |
1156 | bool make_transparency_pixmap (); |
1158 | # endif |
1157 | # endif |
1159 | |
1158 | |
1160 | ev_tstamp bg_valid_since; |
1159 | ev_tstamp bg_valid_since; |
1161 | |
1160 | |
1162 | Pixmap bg_pixmap; |
1161 | Pixmap bg_pixmap; |