From 1db7e5fb0cce6cdfaa34a7bc3426587b3b288444 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 27 Apr 2003 23:55:08 +0000 Subject: fixed scaling --- src/FbTk/FbPixmap.hh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/FbTk/FbPixmap.hh b/src/FbTk/FbPixmap.hh index a8f9472..487854a 100644 --- a/src/FbTk/FbPixmap.hh +++ b/src/FbTk/FbPixmap.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbPixmap.hh,v 1.2 2003/04/27 00:10:28 fluxgen Exp $ +// $Id: FbPixmap.hh,v 1.3 2003/04/27 23:55:08 fluxgen Exp $ #ifndef FBTK_FBPIXMAP_HH #define FBTK_FBPIXMAP_HH @@ -53,6 +53,10 @@ public: void fillPolygon(GC gc, XPoint *points, int npoints, int shape, int mode); void copy(const FbPixmap &the_copy); + /// scales the pixmap to specified size + void scale(unsigned int width, unsigned int height); + /// drops pixmap and returns it + Pixmap release(); FbPixmap &operator = (const FbPixmap ©); /// sets new pixmap @@ -63,6 +67,7 @@ public: inline unsigned int height() const { return m_height; } inline int depth() const { return m_depth; } + private: void free(); void create(Drawable src, -- cgit v0.11.2