always implement SyncUpdateDC and SyncUpdateSurface

This commit is contained in:
Vincent Wei
2020-02-12 21:46:02 +08:00
parent 8b16889136
commit 8e6ffda4a8
+2 -18
View File
@@ -2300,17 +2300,10 @@ MG_EXPORT void GUIAPI DeleteSecondaryDC (HWND hwnd);
* \param hdc The handle to the DC.
*
* \return TRUE when there are rectangles to be synchronized and updated;
* FALSE when _MGUSE_SYNC_UPDATE is not defined, hdc is a memory DC,
* or it is not necessory to update.
* FALSE when it is not necessory to update.
*
* \note This function only works when _MGUSE_SYNC_UPDATE defined.
*/
#ifdef _MGUSE_SYNC_UPDATE
MG_EXPORT BOOL GUIAPI SyncUpdateDC (HDC hdc);
#else
static inline BOOL GUIAPI SyncUpdateDC (HDC hdc)
{ return TRUE; }
#endif
/**
* \fn BOOL GUIAPI SyncUpdateSurface (HWND hwnd)
@@ -2323,18 +2316,9 @@ static inline BOOL GUIAPI SyncUpdateDC (HDC hdc)
* \param hwnd The handle to the window.
*
* \return TRUE when there are rectangles to be synchronized and updated;
* FALSE when _MGSCHEMA_COMPOSITING or _MGUSE_SYNC_UPDATE is not defined,
* hwnd is invalid, or it is not necessory to update.
*
* \note This function only works when _MGSCHEMA_COMPOSITING and
* _MGUSE_SYNC_UPDATE defined.
* FALSE when hwnd is invalid, or it is not necessory to update.
*/
#if defined(_MGUSE_SYNC_UPDATE) && defined(_MGSCHEMA_COMPOSITING)
MG_EXPORT BOOL GUIAPI SyncUpdateSurface (HWND hwnd);
#else
static inline BOOL GUIAPI SyncUpdateSurface (HWND hwnd)
{ return TRUE; }
#endif
/** @} end of dc_fns */