diff options
author | fluxgen <fluxgen> | 2003-04-27 23:55:08 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-04-27 23:55:08 (GMT) |
commit | 1db7e5fb0cce6cdfaa34a7bc3426587b3b288444 (patch) | |
tree | e46d821275a42b8216bc0f5233e3d894b20e90c5 /src/FbTk | |
parent | 1e145051c7f7eb680ac28a1a869cb17a8a21daf5 (diff) | |
download | fluxbox-1db7e5fb0cce6cdfaa34a7bc3426587b3b288444.zip fluxbox-1db7e5fb0cce6cdfaa34a7bc3426587b3b288444.tar.bz2 |
fixed scaling
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/FbPixmap.hh | 7 |
1 files changed, 6 insertions, 1 deletions
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 @@ | |||
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: FbPixmap.hh,v 1.2 2003/04/27 00:10:28 fluxgen Exp $ | 22 | // $Id: FbPixmap.hh,v 1.3 2003/04/27 23:55:08 fluxgen Exp $ |
23 | 23 | ||
24 | #ifndef FBTK_FBPIXMAP_HH | 24 | #ifndef FBTK_FBPIXMAP_HH |
25 | #define FBTK_FBPIXMAP_HH | 25 | #define FBTK_FBPIXMAP_HH |
@@ -53,6 +53,10 @@ public: | |||
53 | void fillPolygon(GC gc, XPoint *points, int npoints, | 53 | void fillPolygon(GC gc, XPoint *points, int npoints, |
54 | int shape, int mode); | 54 | int shape, int mode); |
55 | void copy(const FbPixmap &the_copy); | 55 | void copy(const FbPixmap &the_copy); |
56 | /// scales the pixmap to specified size | ||
57 | void scale(unsigned int width, unsigned int height); | ||
58 | /// drops pixmap and returns it | ||
59 | Pixmap release(); | ||
56 | 60 | ||
57 | FbPixmap &operator = (const FbPixmap ©); | 61 | FbPixmap &operator = (const FbPixmap ©); |
58 | /// sets new pixmap | 62 | /// sets new pixmap |
@@ -63,6 +67,7 @@ public: | |||
63 | inline unsigned int height() const { return m_height; } | 67 | inline unsigned int height() const { return m_height; } |
64 | inline int depth() const { return m_depth; } | 68 | inline int depth() const { return m_depth; } |
65 | 69 | ||
70 | |||
66 | private: | 71 | private: |
67 | void free(); | 72 | void free(); |
68 | void create(Drawable src, | 73 | void create(Drawable src, |