mirror of
https://gitlab.com/hashborgir/plugy.git
synced 2024-11-30 12:36:02 +00:00
21 lines
542 B
C++
21 lines
542 B
C++
/*=================================================================
|
|
File created by Yohann NICOLAS.
|
|
|
|
Common functions.
|
|
|
|
=================================================================*/
|
|
|
|
#include "common.h"
|
|
|
|
bool isOnRect(DWORD x, DWORD y, DWORD x0, DWORD y0, DWORD l, DWORD h)
|
|
{return (x>=x0) && (x<x0+l) && (y>y0-h) && (y<=y0);}
|
|
|
|
|
|
void freeMessage(sWinMessage* msg)
|
|
{
|
|
msg->managed=1;
|
|
msg->unmanaged=0;
|
|
D2FreeWinMessage(msg);
|
|
}
|
|
|
|
/*================================= END OF FILE =================================*/ |