GRAPHICS: Change pitch from int16 to int32

This is required for games allocating very big surfaces
(e.g. 9000x300 in Chronicle of Innsmouth - Mountains of Madness)
This commit is contained in:
Walter Agazzi 2023-05-15 10:32:07 +02:00 committed by Eugene Sandulenko
parent 48bcf5dc4b
commit 421295bdc6
3 changed files with 4 additions and 3 deletions

View File

@ -32,7 +32,8 @@ class BITMAP {
private:
Graphics::ManagedSurface *_owner;
public:
int16 &w, &h, &pitch;
int16 &w, &h;
int32 &pitch;
Graphics::PixelFormat &format;
bool clip;
int ct, cb, cl, cr;

View File

@ -103,7 +103,7 @@ public:
public:
int16 &w; /*!< Width of the surface rectangle. */
int16 &h; /*!< Height of the surface rectangle. */
int16 &pitch; /*!< Pitch of the surface rectangle. See @ref Surface::pitch. */
int32 &pitch; /*!< Pitch of the surface rectangle. See @ref Surface::pitch. */
PixelFormat &format; /*!< Pixel format of the surface. See @ref PixelFormat. */
public:
/**

View File

@ -79,7 +79,7 @@ struct Surface {
*
* @note This might not equal w * bytesPerPixel.
*/
int16 pitch;
int32 pitch;
protected:
/**