fixed scaling
fluxgen fluxgen
1 files changed,
6 insertions(+),
1 deletions(-)
jump to
M
src/FbTk/FbPixmap.hh
→
src/FbTk/FbPixmap.hh
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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 @@ unsigned int width, unsigned int height);
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@@ -62,6 +66,7 @@ inline Drawable drawable() const { return m_pm; }
inline unsigned int width() const { return m_width; } inline unsigned int height() const { return m_height; } inline int depth() const { return m_depth; } + private: void free();