summaryrefslogtreecommitdiff
path: root/src/FbTk/TextureRender.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/TextureRender.cc')
-rw-r--r--src/FbTk/TextureRender.cc7
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