2016-04-18 09:08:37 +00:00
|
|
|
/*=================================================================
|
|
|
|
File created by Yohann NICOLAS.
|
|
|
|
|
|
|
|
Common functions.
|
2021-01-04 07:07:29 +00:00
|
|
|
|
2016-04-18 09:08:37 +00:00
|
|
|
=================================================================*/
|
|
|
|
|
|
|
|
#include "common.h"
|
2016-04-18 09:10:35 +00:00
|
|
|
|
2016-04-18 09:08:37 +00:00
|
|
|
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 =================================*/
|