rename get_valid_dc to get_effective_dc; rename release_valid_dc to release_effective_dc

This commit is contained in:
Vincent Wei
2020-02-27 10:40:17 +08:00
parent 98cdfd9bfb
commit 16d3a63fbb
7 changed files with 44 additions and 43 deletions
+2 -2
View File
@@ -666,7 +666,7 @@ leave_drawing:
#endif // #if MGUI_BYTEORDER == MGUI_LIL_ENDIAN
static inline HDC get_valid_dc (PMAINWIN pWin, BOOL client)
static inline HDC get_effective_dc (PMAINWIN pWin, BOOL client)
{
if (!(pWin->dwExStyle & WS_EX_CTRLASMAINWIN)
&& (pWin->pMainWin->secondaryDC)) {
@@ -690,7 +690,7 @@ static inline HDC get_valid_dc (PMAINWIN pWin, BOOL client)
}
}
static inline void release_valid_dc (PMAINWIN pWin, HDC hdc)
static inline void release_effective_dc (PMAINWIN pWin, HDC hdc)
{
if (pWin->pMainWin->secondaryDC) {
if (pWin->privCDC != hdc)