aboutsummaryrefslogtreecommitdiff
path: root/graphics/surface.h
diff options
context:
space:
mode:
authorRobin Watts2008-02-03 21:13:56 +0000
committerRobin Watts2008-02-03 21:13:56 +0000
commit7a70a4fb9227b10bf19e1649632cda66dc6cf485 (patch)
treea2aafe5cb6367f999cea24eca21a36b57cc27a98 /graphics/surface.h
parent8a73356a2d6e2d6b7ecefb53e0d5e82484f0e697 (diff)
downloadscummvm-rg350-7a70a4fb9227b10bf19e1649632cda66dc6cf485.tar.gz
scummvm-rg350-7a70a4fb9227b10bf19e1649632cda66dc6cf485.tar.bz2
scummvm-rg350-7a70a4fb9227b10bf19e1649632cda66dc6cf485.zip
Missed file from previous commits. Bah.
svn-id: r30781
Diffstat (limited to 'graphics/surface.h')
-rw-r--r--graphics/surface.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/graphics/surface.h b/graphics/surface.h
index 3e42b69c69..43977d024d 100644
--- a/graphics/surface.h
+++ b/graphics/surface.h
@@ -36,10 +36,14 @@ namespace Graphics {
* operations, font rendering, etc.
*/
struct Surface {
- void *pixels;
+ /**
+ * ARM code relies on the layout of the first 3 of these fields. Do
+ * not change them.
+ */
uint16 w;
uint16 h;
uint16 pitch;
+ void *pixels;
uint8 bytesPerPixel;
Surface() : pixels(0), w(0), h(0), pitch(0), bytesPerPixel(0) {}