Add line width calculations for 15/16 and 24/32 bit modes in case