you need integer scalling for what are you trying to do official mame support this only in ddraw mode in d3d mode (the default) you will need to use a variant of mame build which has cleanstretch option or compile official mame with cleanstretch patch applied