Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 400a16d in mainline for uspace/lib/gfxfont/src/text.c


Ignore:
Timestamp:
2021-09-03T09:27:57Z (6 weeks ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
81d3612
Parents:
f7c12b3
git-author:
Jiri Svoboda <jiri@…> (2021-09-02 17:26:05)
git-committer:
Jiri Svoboda <jiri@…> (2021-09-03 09:27:57)
Message:

Clarify right/bottom-aligned text position and fix off-by-ones

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gfxfont/src/text.c

    rf7c12b3 r400a16d  
    191191                        break;
    192192                case gfx_halign_right:
    193                         spos->x -= width - 1;
     193                        spos->x -= width;
    194194                        break;
    195195                default:
     
    210210                        break;
    211211                case gfx_valign_bottom:
    212                         cpos.y -= fmetrics.descent;
     212                        cpos.y -= fmetrics.descent + 1;
    213213                        break;
    214214                default:
Note: See TracChangeset for help on using the changeset viewer.