display size and position, display coordinate system
#include <tscope5.h>
int main()
{
double mw, mh;
double dw, dh;
double dx, dy;
double bw, bh;
ts5_printf(dw/2.0, dh/2.0 - 20.0,
"display adapter size: %.0f x %.0f", mw, mh);
ts5_printf(dw/2.0, dh/2.0,
"display size: %5.2f x %5.2f", dw, dh);
ts5_printf(dw/2.0, dh/2.0 + 20.0,
"display position: %5.2f x %5.2f", dx, dy);
ts5_printf(dw/2.0, dh/2.0 + 40.0,
"bitmap size: %5.2f x %5.2f", bw, bh);
return 0;
}