all repos — fluxbox @ 1af005c78eed186ec79b49e86c35fc09f8ecca37

custom fork of the fluxbox windowmanager

no need to crash n burn because of stupid size
fluxgen fluxgen
commit

1af005c78eed186ec79b49e86c35fc09f8ecca37

parent

64bf9a94fe57c629e59846b4d634d734a5267882

1 files changed, 11 insertions(+), 1 deletions(-)

jump to
M src/TextureRender.ccsrc/TextureRender.cc

@@ -22,7 +22,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: 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 @@ xtable(0), ytable(0) {

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"<<endl; + width = 3200; + } + + if (height > 3200) { + cerr<<"TextureRender: Warning! Height > 3200 setting Height = 3200"<<endl; + height = 3200; + } red = new (nothrow) unsigned char[width * height]; if (red == 0) {