Mercurial > public > ostc4
diff Discovery/Src/gfx_engine.c @ 696:cc542448fb28
Merge
author | heinrichsweikamp |
---|---|
date | Fri, 19 Aug 2022 11:30:24 +0200 |
parents | 7fa5ef6ae419 |
children | 2c2b9c6eb089 |
line wrap: on
line diff
--- a/Discovery/Src/gfx_engine.c Mon Nov 01 12:39:34 2021 +0100 +++ b/Discovery/Src/gfx_engine.c Fri Aug 19 11:30:24 2022 +0200 @@ -2754,7 +2754,14 @@ } // ----------------------------- char_truncated_Height = 0; - height_left = hgfx->Image->ImageHeight - (hgfx->WindowY0 + cfg->Ydelta); + if(!pSettings->FlipDisplay) + { + height_left = hgfx->Image->ImageHeight - (hgfx->WindowY0 + cfg->Ydelta); + } + else + { + height_left = (hgfx->WindowY1 - cfg->Ydelta); + } if(height_left < height) { char_truncated_Height = height - height_left;