mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-15 10:48:04 +00:00
Add redefinition guards for RECTWIDTH/RECTHEIGHT macros
This commit is contained in:
parent
222fd49793
commit
b1910a45be
@ -27,8 +27,12 @@ long lastMsgTime = 0;
|
|||||||
bool ui_debug_mode;
|
bool ui_debug_mode;
|
||||||
HFONT fonts[1];
|
HFONT fonts[1];
|
||||||
|
|
||||||
|
#ifndef RECTWIDTH
|
||||||
#define RECTWIDTH(rc) ((rc).right - (rc).left)
|
#define RECTWIDTH(rc) ((rc).right - (rc).left)
|
||||||
|
#endif
|
||||||
|
#ifndef RECTHEIGHT
|
||||||
#define RECTHEIGHT(rc) ((rc).bottom - (rc).top)
|
#define RECTHEIGHT(rc) ((rc).bottom - (rc).top)
|
||||||
|
#endif
|
||||||
|
|
||||||
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
@ -11,8 +11,12 @@ HBITMAP renderer_hbmMem = {0};
|
|||||||
HANDLE renderer_hOld = {0};
|
HANDLE renderer_hOld = {0};
|
||||||
bool gdi_fabulous = true;
|
bool gdi_fabulous = true;
|
||||||
|
|
||||||
|
#ifndef RECTWIDTH
|
||||||
#define RECTWIDTH(rc) ((rc).right - (rc).left)
|
#define RECTWIDTH(rc) ((rc).right - (rc).left)
|
||||||
|
#endif
|
||||||
|
#ifndef RECTHEIGHT
|
||||||
#define RECTHEIGHT(rc) ((rc).bottom - (rc).top)
|
#define RECTHEIGHT(rc) ((rc).bottom - (rc).top)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------+
|
/*----------------------------------------------------------------------------+
|
||||||
| Math stuff start |
|
| Math stuff start |
|
||||||
|
Loading…
Reference in New Issue
Block a user