mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-02 08:19:19 +00:00
Workaround issue in Graphics::Surface code on Haiku
svn-id: r35745
This commit is contained in:
parent
ba876efa15
commit
d104e6fe33
@ -47,7 +47,7 @@ struct Surface {
|
||||
Surface() : w(0), h(0), pitch(0), pixels(0), bytesPerPixel(0) {}
|
||||
|
||||
inline const void *getBasePtr(int x, int y) const {
|
||||
return static_cast<const byte *>(pixels) + y * pitch + x * bytesPerPixel;
|
||||
return (const byte *)(pixels) + y * pitch + x * bytesPerPixel;
|
||||
}
|
||||
|
||||
inline void *getBasePtr(int x, int y) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user