plugy/PlugY/Common.cpp

21 lines
541 B
C++
Raw Normal View History

/*=================================================================
File created by Yohann NICOLAS.
Common functions.
2021-01-04 07:07:29 +00:00
=================================================================*/
#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 =================================*/