aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/FbDrawable.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/FbDrawable.cc')
-rw-r--r--src/FbTk/FbDrawable.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/FbTk/FbDrawable.cc b/src/FbTk/FbDrawable.cc
index 7a1cc9b..21f2eba 100644
--- a/src/FbTk/FbDrawable.cc
+++ b/src/FbTk/FbDrawable.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbDrawable.cc,v 1.1 2003/04/29 08:49:36 fluxgen Exp $ 22// $Id: FbDrawable.cc,v 1.2 2003/09/06 15:39:06 fluxgen Exp $
23 23
24#include "FbDrawable.hh" 24#include "FbDrawable.hh"
25 25
@@ -86,4 +86,11 @@ void FbDrawable::drawPoint(GC gc, int x, int y) {
86 XDrawPoint(FbTk::App::instance()->display(), drawable(), gc, x, y); 86 XDrawPoint(FbTk::App::instance()->display(), drawable(), gc, x, y);
87} 87}
88 88
89XImage *FbDrawable::image(int x, int y, unsigned int width, unsigned int height) const {
90 return XGetImage(FbTk::App::instance()->display(), drawable(),
91 x, y, width, height,
92 AllPlanes, // plane mask
93 ZPixmap);
94}
95
89}; // end namespace FbTk 96}; // end namespace FbTk