# HG changeset patch # User Ideenmodellierer # Date 1618856184 -7200 # Node ID 60162a939c062c9013317bebc255f388e1c5d4a9 # Parent ff2b393e290f9820df7f5acd67b1b33da36c4339 Bugfix consider checkbox in calculation of right aligned and centered position: In previous version the size of the checkbox was ignored during calculation of the string view size. As result the checkbox was not displayed as it should be. To fix this the size of a chebox is now added to the string size. diff -r ff2b393e290f -r 60162a939c06 Discovery/Src/gfx_engine.c --- a/Discovery/Src/gfx_engine.c Mon Apr 19 20:14:20 2021 +0200 +++ b/Discovery/Src/gfx_engine.c Mon Apr 19 20:16:24 2021 +0200 @@ -3132,6 +3132,12 @@ { ptargetFont = (tFont *)cfg->font; } + + if((*(char*)pText == '\005') || (*(char*)pText == '\006')) + { + Xsum += 45; + } + else if((*(char*)pText) & 0x80) /* Identify a UNICODE character other than standard ASCII using the highest bit */ { decodeUTF8 = ((*(char*)pText) & 0x1F) << 6; /* use 5bits of first byte for upper part of unicode */ @@ -3234,6 +3240,11 @@ Xsum += font->spacesize; } else + if((*(char*)pText == '\005') || (*(char*)pText == '\006')) + { + Xsum += 45; + } + else { if((*(char*)pText) & 0x80) /* Identify a UNICODE character other than standard ASCII using the highest bit */ {