Workaround issue in Graphics::Surface code on Haiku
svn-id: r35745
This commit is contained in:
parent
ba876efa15
commit
d104e6fe33
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue