Add redefinition guards for RECTWIDTH/RECTHEIGHT macros

This commit is contained in:
Philosoph228 2025-04-02 11:28:57 +05:00
parent 222fd49793
commit b1910a45be
No known key found for this signature in database
GPG Key ID: 02FA07138D16BF76
2 changed files with 8 additions and 0 deletions

View File

@ -27,8 +27,12 @@ long lastMsgTime = 0;
bool ui_debug_mode;
HFONT fonts[1];
#ifndef RECTWIDTH
#define RECTWIDTH(rc) ((rc).right - (rc).left)
#endif
#ifndef RECTHEIGHT
#define RECTHEIGHT(rc) ((rc).bottom - (rc).top)
#endif
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{

View File

@ -11,8 +11,12 @@ HBITMAP renderer_hbmMem = {0};
HANDLE renderer_hOld = {0};
bool gdi_fabulous = true;
#ifndef RECTWIDTH
#define RECTWIDTH(rc) ((rc).right - (rc).left)
#endif
#ifndef RECTHEIGHT
#define RECTHEIGHT(rc) ((rc).bottom - (rc).top)
#endif
/*----------------------------------------------------------------------------+
| Math stuff start |