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

Changeset 3e640e5 in mainline


Ignore:
Timestamp:
2020-06-15T15:24:06Z (3 weeks ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
5e3e42c7
Parents:
c45d8696
Message:

Fix center placement (used by vdemo)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gui/window.c

    rc45d8696 r3e640e5  
    509509                        dpos.x = drect.p0.x;
    510510                else if (placement_flags & WINDOW_PLACEMENT_CENTER_X)
    511                         dpos.x = (drect.p0.x + drect.p0.y - width) / 2;
     511                        dpos.x = (drect.p0.x + drect.p1.x - width) / 2;
    512512                else
    513513                        dpos.x = drect.p1.x - width;
Note: See TracChangeset for help on using the changeset viewer.