Game Development Community

Problem with getImageMapBitmapSize

by Harold "LabRat" Brown · in Torque Game Builder · 03/24/2005 (7:14 pm) · 0 replies

Imagemap.getImageMapBitmapSize();

Doesn't return the correct information, looking at the source I found the following.


F32   getBitmapWidth( void )	{ return mBitmapWidth; };
	F32   getBitmapHeight( void )	{ return mBitmapHeight; };

Change to:

U32   getBitmapWidth( void )	{ return mBitmapWidth; };
	U32   getBitmapHeight( void )	{ return mBitmapHeight; };