38 #include <fcntl.h> 39 #include <memory.h> 40 #include <string.h> 41 #include <malloc.h> 42 #include <stdio.h> 43 #include <stdlib.h> 44 45 typedef DWORD rgbquad_t; 46 typedef WORD word_t; 47 typedef BYTE byte_t; 48 typedef RECT RECT_T; 49 50 #define RECT_EQ_X(r1, r2) ((r1).left==(r2).left && (r1).right==(r2).right) 51 #define RECT_SET(r,xx,yy,ww,hh) (r).left=(xx);(r).top=(yy); \ 52 (r).right=(xx)+(ww); (r).bottom=(yy)+(hh); 53 #define RECT_INC_HEIGHT(r) (r).bottom++; 54 55 #define INLINE __inline 56 57 #define SPLASHEXPORT __declspec(dllexport) 58 59 60 #endif | 38 #include <fcntl.h> 39 #include <memory.h> 40 #include <string.h> 41 #include <malloc.h> 42 #include <stdio.h> 43 #include <stdlib.h> 44 45 typedef DWORD rgbquad_t; 46 typedef WORD word_t; 47 typedef BYTE byte_t; 48 typedef RECT RECT_T; 49 50 #define RECT_EQ_X(r1, r2) ((r1).left==(r2).left && (r1).right==(r2).right) 51 #define RECT_SET(r,xx,yy,ww,hh) (r).left=(xx);(r).top=(yy); \ 52 (r).right=(xx)+(ww); (r).bottom=(yy)+(hh); 53 #define RECT_INC_HEIGHT(r) (r).bottom++; 54 55 #define INLINE __inline 56 57 #define SPLASHEXPORT __declspec(dllexport) 58 #endif 59 #ifdef __cplusplus 60 extern "C" { 61 #endif 62 float GetScreenDpi(); 63 HMONITOR WINAPI getPrimaryMonitor(); 64 #ifdef __cplusplus 65 } 66 #endif 67 |