diff options
author | fluxgen <fluxgen> | 2003-08-12 11:44:41 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-08-12 11:44:41 (GMT) |
commit | 9f939d9af99ad01cb7962a241ff62de5d064972d (patch) | |
tree | 68e14d2a3b65a0ac6799ae5c30f53c648b2e99d2 /src/FbTk/TextureRender.cc | |
parent | 680407c294b9de22f357b6667ccbc580105b7ce1 (diff) | |
download | fluxbox-9f939d9af99ad01cb7962a241ff62de5d064972d.zip fluxbox-9f939d9af99ad01cb7962a241ff62de5d064972d.tar.bz2 |
added TILED option
Diffstat (limited to 'src/FbTk/TextureRender.cc')
-rw-r--r-- | src/FbTk/TextureRender.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/FbTk/TextureRender.cc b/src/FbTk/TextureRender.cc index 1f7d29f..40a7e72 100644 --- a/src/FbTk/TextureRender.cc +++ b/src/FbTk/TextureRender.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: TextureRender.cc,v 1.3 2003/04/28 22:27:29 fluxgen Exp $ | 25 | // $Id: TextureRender.cc,v 1.4 2003/08/12 11:44:41 fluxgen Exp $ |
26 | 26 | ||
27 | #include "TextureRender.hh" | 27 | #include "TextureRender.hh" |
28 | 28 | ||
@@ -264,7 +264,10 @@ Pixmap TextureRender::renderPixmap(const FbTk::Texture &src_texture) { | |||
264 | // copy src_texture's pixmap and | 264 | // copy src_texture's pixmap and |
265 | // scale to fit our size | 265 | // scale to fit our size |
266 | FbPixmap new_pm(src_texture.pixmap()); | 266 | FbPixmap new_pm(src_texture.pixmap()); |
267 | new_pm.scale(width, height); | 267 | // if not tiled then scale it |
268 | if (! (src_texture.type() & Texture::TILED)) | ||
269 | new_pm.scale(width, height); | ||
270 | |||
268 | return new_pm.release(); | 271 | return new_pm.release(); |
269 | } | 272 | } |
270 | // return copy of pixmap | 273 | // return copy of pixmap |