mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 12:27:58 +08:00
add const for the first arguments of PtInRegion and RectInRegion
This commit is contained in:
+2
-2
@@ -182,7 +182,7 @@ typedef void (*voidProcp2)(CLIPRGN *region, const CLIPRECT *r, const CLIPRECT *r
|
||||
extern BLOCKHEAP __mg_FreeClipRectList;
|
||||
|
||||
/* return TRUE if point is in region */
|
||||
BOOL GUIAPI PtInRegion (PCLIPRGN region, int x, int y)
|
||||
BOOL GUIAPI PtInRegion (const PCLIPRGN region, int x, int y)
|
||||
{
|
||||
int top;
|
||||
PCLIPRECT cliprect = region->head;
|
||||
@@ -216,7 +216,7 @@ BOOL GUIAPI PtInRegion (PCLIPRGN region, int x, int y)
|
||||
}
|
||||
|
||||
/* Returns TRUE if rect is at least partly inside region */
|
||||
BOOL GUIAPI RectInRegion (PCLIPRGN region, const RECT* rect)
|
||||
BOOL GUIAPI RectInRegion (const PCLIPRGN region, const RECT* rect)
|
||||
{
|
||||
PCLIPRECT cliprect = region->head;
|
||||
BOOL ret = FALSE;
|
||||
|
||||
Reference in New Issue
Block a user