fixing advmame2x scaler implementation