images bigger then 32k no longer crash blender, use unsigned int for image size rathe...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 28 Sep 2010 10:03:56 +0000 (10:03 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 28 Sep 2010 10:03:56 +0000 (10:03 +0000)
commit8df244f20dc4a2d92bbe496f123f2d6578167949
tree93b4f34ee3cd5f98e30a3ebe324fdd59669e9ca1
parent8d50b283cbc663f08b0c4b0e43ed8fdee4a93549
images bigger then 32k no longer crash blender, use unsigned int for image size rather then short.
also check if jpeg fails to allocate an imbuf.
source/blender/blenkernel/BKE_image.h
source/blender/blenkernel/intern/constraint.c
source/blender/blenkernel/intern/image.c
source/blender/editors/transform/transform_snap.c
source/blender/imbuf/IMB_imbuf.h
source/blender/imbuf/IMB_imbuf_types.h
source/blender/imbuf/intern/allocimbuf.c
source/blender/imbuf/intern/jpeg.c
source/blender/imbuf/intern/scaling.c