CVT_MARGIN_PERCENTAGE
hmargin = hdisplay_rnd * CVT_MARGIN_PERCENTAGE / 1000;
vmargin = vdisplay_rnd * CVT_MARGIN_PERCENTAGE / 1000;