VOID
Grect2xy( GRECT *g, short *pxy)
{
	pxy[0] = g.g_x;
	pxy[1] = g.g_y;
	pxy[2] = g.g_x + g.g_w - 1;
	pxy[3] = g.g_y + g.g_h - 1;
}

VOID
Xy2Grect( short *pxy, GRECT *g )
{
	g.g_x = pxy[0];
	g.g_y = pxy[1];
	g.g_w = pxy[2] - pxy[0] + 1;
	g.g_h = pxy[3] - pxy[1] + 1;
}
