From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Fri, 22 May 2020 16:07:18 +0200 Subject: [PATCH 06/26] video: Adjust rotated console to start at right edge In-Reply-To: <20200519231058.19945-7-sjg@chromium.org> References: <20200519231058.19945-1-sjg@chromium.org> <20200519231058.19945-7-sjg@chromium.org> Message-ID: <20200522160718.78a7139d@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 19 May 2020 17:10:38 -0600 Simon Glass sjg at chromium.org wrote: > At present when the console is rotated 180 degrees it starts almost a > whole character to the left of the right edge (typically 7 pixels with > an 8-pixel-wide font). On a display which aligns with the font width, > this just wastes space. On a display that does not this can result in > x_frac going negative for the final character (the one on the left > side) and the overflow -EAGAIN check at the start of the function > failing. > > Change the function to start at the rightmost pixel to fix these > problems. > > Signed-off-by: Simon Glass Reviewed-by: Anatolij Gustschin