'gfx_puts' will do line breaks only after a char has already left the screen. This change will check if a line break is necessary before a char is printed.