The you can just half the the width and the height.
For instance: 1024/2 and 768/2 used those since those are usual width and height. There also are some predefined variables such as DT_CENTER... or something like that to get the x and DT_VCENTER for y center.
For instance: 1024/2 and 768/2 used those since those are usual width and height. There also are some predefined variables such as DT_CENTER... or something like that to get the x and DT_VCENTER for y center.
