diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/surface.h | 6 |
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) {} |