From 1af005c78eed186ec79b49e86c35fc09f8ecca37 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 5 Jan 2003 22:36:28 +0000 Subject: no need to crash n burn because of stupid size --- src/TextureRender.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/TextureRender.cc b/src/TextureRender.cc index 692984f..d3ef8f6 100644 --- a/src/TextureRender.cc +++ b/src/TextureRender.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: TextureRender.cc,v 1.6 2002/12/09 23:43:50 fluxgen Exp $ +// $Id: TextureRender.cc,v 1.7 2003/01/05 22:36:28 fluxgen Exp $ #include "TextureRender.hh" @@ -45,6 +45,16 @@ TextureRender::TextureRender(BImageControl &imgctrl, width = ((signed) w > 0) ? w : 1; height = ((signed) h > 0) ? h : 1; + // clamp to "normal" size + if (width > 3200) { + cerr<<"TextureRender: Warning! Width > 3200 setting Width = 3200"< 3200) { + cerr<<"TextureRender: Warning! Height > 3200 setting Height = 3200"<