diff options
Diffstat (limited to 'x11-wm/jewel/files/patch-goodies-setrootimage_setrootimage.cc')
-rw-r--r-- | x11-wm/jewel/files/patch-goodies-setrootimage_setrootimage.cc | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/x11-wm/jewel/files/patch-goodies-setrootimage_setrootimage.cc b/x11-wm/jewel/files/patch-goodies-setrootimage_setrootimage.cc new file mode 100644 index 000000000000..709841b22573 --- /dev/null +++ b/x11-wm/jewel/files/patch-goodies-setrootimage_setrootimage.cc @@ -0,0 +1,41 @@ +--- goodies/setrootimage/setrootimage.cc.orig 2007-12-06 21:20:21.000000000 +0100 ++++ goodies/setrootimage/setrootimage.cc 2007-12-06 21:24:15.000000000 +0100 +@@ -31,6 +31,9 @@ + * Released under the GNU GPL license + * www.gnu.org + */ ++#include <iostream> ++using namespace std; ++ + #include <X11/Xlib.h> + #include <X11/xpm.h> + #include <stdlib.h> +@@ -56,10 +59,11 @@ + temp_blue[1] = the_color[i]; + } + +- color.red = strtol(temp_red,0,16); ++ color.pixel = 0; ++ color.red = strtol(temp_red,0,16); + color.green = strtol(temp_green,0,16); + color.blue = strtol(temp_blue,0,16); +- ++ + return color; + } + +@@ -86,10 +90,10 @@ + Pixmap root_pix = None; + BColor to, from; + +- char* opt_color="no color"; +- char* opt_from="708090"; +- char* opt_to="ffffff"; +- char* opt_display=""; ++ char* opt_color=(char *)"no color"; ++ char* opt_from=(char *)"708090"; ++ char* opt_to=(char *)"ffffff"; ++ char* opt_display=(char *)""; + + int width=0; + int height=0; |