void Drawupdowncursor(int x, int y, int length, int instance,VMUINT16 color)
{
int xp1,xp2,yp1,yp2,i;
for (i = 0; i <= length; i++)
{
yp1 = yp2 = y;
xp1 = (x - length)+(length/2) * i/length;
xp2 = x-(length/2) * i/length;
vm_dd_line(scrbuf,xp1,yp1,xp2,yp2,color);
y++;
}
y--;
for (i = 0;i <= length; i++)
{
yp1 = yp2 = y;
xp1 = (x + instance)+(length/2) * i/length;
xp2 = (x + instance + length) - (length/2) * i/length;
vm_dd_line(scrbuf,xp1,yp1,xp2,yp2,color);
y--;
}
}
{
int xp1,xp2,yp1,yp2,i;
for (i = 0; i <= length; i++)
{
yp1 = yp2 = y;
xp1 = (x - length)+(length/2) * i/length;
xp2 = x-(length/2) * i/length;
vm_dd_line(scrbuf,xp1,yp1,xp2,yp2,color);
y++;
}
y--;
for (i = 0;i <= length; i++)
{
yp1 = yp2 = y;
xp1 = (x + instance)+(length/2) * i/length;
xp2 = (x + instance + length) - (length/2) * i/length;
vm_dd_line(scrbuf,xp1,yp1,xp2,yp2,color);
y--;
}
}