# HG changeset patch # User Ideenmodellierer # Date 1650913810 -7200 # Node ID 7fa5ef6ae419a6527cae785d49696a44474fa9f3 # Parent 5575f21382d597bcba6f312fcae1f070fffca0e0 Bugfix screen clipping (Flipdisplay mode): part of characters may be truncated in case they do not fit on the screen. The truncation was not working for flip mode causing some black areas e.g. in the simulator menu. The code does now consider the inversed boundaries of the screen in case flip mode is active. diff -r 5575f21382d5 -r 7fa5ef6ae419 Discovery/Src/gfx_engine.c --- a/Discovery/Src/gfx_engine.c Mon Apr 25 21:07:28 2022 +0200 +++ b/Discovery/Src/gfx_engine.c Mon Apr 25 21:10:10 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;