aboutsummaryrefslogtreecommitdiffstats
path: root/include/ui.h
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-02-03 19:29:41 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-02-03 19:29:41 -0500
commit5f18e763031091a34dc7e279424c2359f63e3d9c (patch)
tree5a1dd4b4ffed3cd2f3f5ed9b25c745c5247f1649 /include/ui.h
parentb5598688432a0acd416be97ecf54576bbbf07eb6 (diff)
Fixed screenshotting on 64bit
Diffstat (limited to 'include/ui.h')
-rw-r--r--include/ui.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/ui.h b/include/ui.h
index b9b9c24..8582460 100644
--- a/include/ui.h
+++ b/include/ui.h
@@ -55,8 +55,10 @@ public:
void gotoParent();
};
-typedef unsigned long DWORD;
-typedef unsigned short WORD;
+typedef uint8_t BYTE;
+typedef uint16_t WORD;
+typedef uint32_t DWORD;
+typedef int32_t LONG;
typedef struct{
WORD bfType;
@@ -67,14 +69,14 @@ typedef struct{
typedef struct{
DWORD biSize; //size of header in bytes
- long biWidth;
- long biHeight;
+ LONG biWidth;
+ LONG biHeight;
WORD biPlanes;
WORD biBitCount; //how many bits are in a pixel
DWORD biCompression;
DWORD biSizeImage; //size of image in bytes
- long biXPelsPerMeter;
- long biYPelsPerMeter;
+ LONG biXPelsPerMeter;
+ LONG biYPelsPerMeter;
DWORD biClrUsed; //how many colors there are
DWORD biClrImportant; //important colors
} __attribute__ ((packed)) BITMAPINFOHEADER;