pull/162/head
jing-sheng.huang 3 years ago
parent 0dbd3b2133
commit 9ca3dd36aa

@ -38,6 +38,34 @@ using std::uint8_t;
using qrcodegen::QrCode; using qrcodegen::QrCode;
using qrcodegen::QrSegment; using qrcodegen::QrSegment;
#pragma pack(2)// need this, otherwise cant get correct result of sizeof
typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef unsigned long DWORD;
typedef long LONG;
typedef struct {
WORD bfType;
DWORD bfSize;
WORD bfReserved1;
WORD bfReserved2;
DWORD bfOffBits;
} BITMAPFILEHEADER;
typedef struct {
DWORD biSize;
LONG biWidth;
LONG biHeight;
WORD biPlanes;
WORD biBitCount;
DWORD biCompression;
DWORD biSizeImage;
LONG biXPelsPerMeter;
LONG biYPelsPerMeter;
DWORD biClrUsed;
DWORD biClrImportant;
} BITMAPINFOHEADER;
// Function prototypes // Function prototypes
static void doBasicDemo(); static void doBasicDemo();

Loading…
Cancel
Save