Masking parts of an LCD with software