From ed0ea06881440b9f21b7b2aac40466eca73f6e44 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 20 Jun 2001 16:35:51 +0000 Subject: [PATCH] remove poorly thought-out bounds checking --- panda/src/gobj/pixelBuffer.I | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/panda/src/gobj/pixelBuffer.I b/panda/src/gobj/pixelBuffer.I index 5050cd7581..46937125da 100644 --- a/panda/src/gobj/pixelBuffer.I +++ b/panda/src/gobj/pixelBuffer.I @@ -158,7 +158,7 @@ INLINE PixelBuffer:: //////////////////////////////////////////////////////////////////// INLINE void PixelBuffer::set_xsize(int size) { - if (_xsize != size && size > 1) { + if (_xsize != size) { _xsize = size; make_dirty(); } @@ -171,7 +171,7 @@ INLINE void PixelBuffer::set_xsize(int size) //////////////////////////////////////////////////////////////////// INLINE void PixelBuffer::set_ysize(int size) { - if (_ysize != size && size > 1) { + if (_ysize != size) { _ysize = size; make_dirty(); } @@ -184,7 +184,7 @@ INLINE void PixelBuffer::set_ysize(int size) //////////////////////////////////////////////////////////////////// INLINE void PixelBuffer::set_xorg(int org) { - if (_xorg != org && org >= 0) { + if (_xorg != org) { _xorg = org; make_dirty(); } @@ -197,7 +197,7 @@ INLINE void PixelBuffer::set_xorg(int org) //////////////////////////////////////////////////////////////////// INLINE void PixelBuffer::set_yorg(int org) { - if (_yorg != org && org >= 0) { + if (_yorg != org) { _yorg = org; make_dirty(); }