mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 04:28:37 +00:00
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:
parent
48bcf5dc4b
commit
421295bdc6
@ -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;
|
||||
|
@ -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:
|
||||
/**
|
||||
|
@ -79,7 +79,7 @@ struct Surface {
|
||||
*
|
||||
* @note This might not equal w * bytesPerPixel.
|
||||
*/
|
||||
int16 pitch;
|
||||
int32 pitch;
|
||||
|
||||
protected:
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user