Code: Select all
Point pt = RemapCoords(x, y, 241); // (480/2)+1
width = (vd->dpi.left + vd->dpi.width - pt.x + 95) >> 6;
height = (vd->dpi.top + vd->dpi.height - pt.y) >> 5 << 1;
the outcome should be a width and height converted from window coords... but what's up with the 95? aaarggh