Changeset 3e640e5 in mainline


Ignore:
Timestamp:
2020-06-15T15:24:06Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.