diff options
Diffstat (limited to 'src/FbTk/Transparent.cc')
-rw-r--r-- | src/FbTk/Transparent.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/FbTk/Transparent.cc b/src/FbTk/Transparent.cc index edbab62..81aca99 100644 --- a/src/FbTk/Transparent.cc +++ b/src/FbTk/Transparent.cc | |||
@@ -52,7 +52,7 @@ Picture createAlphaPic(Window drawable, unsigned char alpha) { | |||
52 | PictFormatDepth | PictFormatAlphaMask, | 52 | PictFormatDepth | PictFormatAlphaMask, |
53 | &pic_format, 0); | 53 | &pic_format, 0); |
54 | if (format == 0) { | 54 | if (format == 0) { |
55 | cerr<<"FbTk::Transparent: "<<_FBTKTEXT(Error, NoRenderFormat, "Warning: Failed to find valid format for alpha.", "transparency requires a pict format, can't get one...")<<endl; | 55 | cerr<<"FbTk::Transparent: "<<_FBTK_CONSOLETEXT(Error, NoRenderFormat, "Warning: Failed to find valid format for alpha.", "transparency requires a pict format, can't get one...")<<endl; |
56 | return 0; | 56 | return 0; |
57 | } | 57 | } |
58 | 58 | ||
@@ -60,7 +60,7 @@ Picture createAlphaPic(Window drawable, unsigned char alpha) { | |||
60 | Pixmap alpha_pm = XCreatePixmap(disp, drawable, | 60 | Pixmap alpha_pm = XCreatePixmap(disp, drawable, |
61 | 1, 1, 8); | 61 | 1, 1, 8); |
62 | if (alpha_pm == 0) { | 62 | if (alpha_pm == 0) { |
63 | cerr<<"FbTk::Transparent: "<<_FBTKTEXT(Error, NoRenderPixmap, "Warning: Failed to create alpha pixmap.", "XCreatePixmap failed for our transparency pixmap")<<endl; | 63 | cerr<<"FbTk::Transparent: "<<_FBTK_CONSOLETEXT(Error, NoRenderPixmap, "Warning: Failed to create alpha pixmap.", "XCreatePixmap failed for our transparency pixmap")<<endl; |
64 | return 0; | 64 | return 0; |
65 | } | 65 | } |
66 | 66 | ||
@@ -71,7 +71,7 @@ Picture createAlphaPic(Window drawable, unsigned char alpha) { | |||
71 | format, CPRepeat, &attr); | 71 | format, CPRepeat, &attr); |
72 | if (alpha_pic == 0) { | 72 | if (alpha_pic == 0) { |
73 | XFreePixmap(disp, alpha_pm); | 73 | XFreePixmap(disp, alpha_pm); |
74 | cerr<<"FbTk::Transparent: "<<_FBTKTEXT(Error, NoRenderPicture, "Warning: Failed to create alpha picture.", "XRenderCreatePicture failed")<<endl; | 74 | cerr<<"FbTk::Transparent: "<<_FBTK_CONSOLETEXT(Error, NoRenderPicture, "Warning: Failed to create alpha picture.", "XRenderCreatePicture failed")<<endl; |
75 | return 0; | 75 | return 0; |
76 | } | 76 | } |
77 | 77 | ||
@@ -234,7 +234,7 @@ void Transparent::setDest(Drawable dest, int screen_num) { | |||
234 | if (format == 0) { | 234 | if (format == 0) { |
235 | _FB_USES_NLS; | 235 | _FB_USES_NLS; |
236 | cerr<<"FbTk::Transparent: "; | 236 | cerr<<"FbTk::Transparent: "; |
237 | fprintf(stderr, _FBTKTEXT(Error, NoRenderVisualFormat, "Failed to find format for screen(%d)", "XRenderFindVisualFormat failed... include %d for screen number").c_str(), screen_num); | 237 | fprintf(stderr, _FBTK_CONSOLETEXT(Error, NoRenderVisualFormat, "Failed to find format for screen(%d)", "XRenderFindVisualFormat failed... include %d for screen number").c_str(), screen_num); |
238 | cerr<<endl; | 238 | cerr<<endl; |
239 | } | 239 | } |
240 | m_dest_pic = XRenderCreatePicture(disp, dest, format, 0, 0); | 240 | m_dest_pic = XRenderCreatePicture(disp, dest, format, 0, 0); |
@@ -273,7 +273,7 @@ void Transparent::setSource(Drawable source, int screen_num) { | |||
273 | if (format == 0) { | 273 | if (format == 0) { |
274 | _FB_USES_NLS; | 274 | _FB_USES_NLS; |
275 | cerr<<"FbTk::Transparent: "; | 275 | cerr<<"FbTk::Transparent: "; |
276 | fprintf(stderr, _FBTKTEXT(Error, NoRenderVisualFormat, "Failed to find format for screen(%d)", "XRenderFindVisualFormat failed... include %d for screen number").c_str(), screen_num); | 276 | fprintf(stderr, _FBTK_CONSOLETEXT(Error, NoRenderVisualFormat, "Failed to find format for screen(%d)", "XRenderFindVisualFormat failed... include %d for screen number").c_str(), screen_num); |
277 | cerr<<endl; | 277 | cerr<<endl; |
278 | } | 278 | } |
279 | m_src_pic = XRenderCreatePicture(disp, m_source, format, | 279 | m_src_pic = XRenderCreatePicture(disp, m_source, format, |