Remove some inline definitions

This commit is contained in:
VincentWei
2017-10-24 18:05:52 +08:00
parent 0d97ccc5df
commit edb195523f
9 changed files with 477 additions and 466 deletions
+3 -6
View File
@@ -3,7 +3,7 @@
**
** dc.h: this head file declares all internal types and data of GDI module.
**
** Copyright (C) 2003 ~ 2007 Feynman Software.
** Copyright (C) 2003 ~ 2017 FMSoft.
** Copyright (C) 1999 ~ 2002 Wei Yongming.
**
** Create Date: 1999/xx/xx
@@ -217,16 +217,13 @@ struct tagDC
extern DC __mg_screen_dc;
extern DC __mg_screen_sys_dc;
inline void WndRect(HWND hWnd, PRECT prc);
inline void WndClientRect(HWND hWnd, PRECT prc);
/* This function convert HDC to PDC. */
static inline PDC dc_HDC2PDC (HDC hdc)
{
if (hdc == HDC_SCREEN_SYS)
return &__mg_screen_sys_dc;
return &__mg_screen_sys_dc;
else if (hdc == HDC_SCREEN)
return &__mg_screen_dc;
return &__mg_screen_dc;
return (PDC) hdc;
}
+3
View File
@@ -608,6 +608,9 @@ void mg_TerminateLFManager (void);
char* gui_GetIconFile(const char* rdr_name, char* file, char* _szValue);
BOOL gui_LoadIconRes(HDC hdc, const char* rdr_name, char* file);
void gui_WndRect(HWND hWnd, PRECT prc);
void gui_WndClientRect(HWND hWnd, PRECT prc);
/* -------------------------------------------------------------------------- */
#ifdef __cplusplus