From 3caf3f0d3d338cb109e91d53f9bfa258fe525668 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Fri, 19 Oct 2018 14:04:04 -0600 Subject: [PATCH] Derp fix --- arm9/include/bmp.h | 23 +++++++++++++++++++++++ arm9/include/screenshot.h | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 arm9/include/bmp.h create mode 100644 arm9/include/screenshot.h diff --git a/arm9/include/bmp.h b/arm9/include/bmp.h new file mode 100644 index 0000000..0c7ea60 --- /dev/null +++ b/arm9/include/bmp.h @@ -0,0 +1,23 @@ +#ifndef _bmp_h_ +#define _bmp_h_ + +typedef struct { + u16 type; /* Magic identifier */ + u32 size; /* File size in bytes */ + u16 reserved1, reserved2; + u32 offset; /* Offset to image data, bytes */ +} PACKED HEADER; + +typedef struct { + u32 size; /* Header size in bytes */ + u32 width,height; /* Width and height of image */ + u16 planes; /* Number of colour planes */ + u16 bits; /* Bits per pixel */ + u32 compression; /* Compression type */ + u32 imagesize; /* Image size in bytes */ + u32 xresolution,yresolution; /* Pixels per meter */ + u32 ncolours; /* Number of colours */ + u32 importantcolours; /* Important colours */ +} PACKED INFOHEADER; + +#endif //_bmp_h_ diff --git a/arm9/include/screenshot.h b/arm9/include/screenshot.h new file mode 100644 index 0000000..454bec4 --- /dev/null +++ b/arm9/include/screenshot.h @@ -0,0 +1,2 @@ +void screenshot(const char* filename); +void screenshotbmp(const char* filename);