summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-16 10:35:00 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-16 10:35:00 +0000
commitf9c43d87b62653c2d37d4a7b470ca7d4c30b6af0 (patch)
tree1cba96c7bd5a80fec7969aae16af3da4adadd54b /tools
parent6a90762b8d103d256aa3851e55574154881a4612 (diff)
Support horizontal positioning in STL binary reader/writer and DCP reader.
Diffstat (limited to 'tools')
-rw-r--r--tools/dumpsubs.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/dumpsubs.cc b/tools/dumpsubs.cc
index fef3885..6cd1255 100644
--- a/tools/dumpsubs.cc
+++ b/tools/dumpsubs.cc
@@ -113,6 +113,18 @@ main (int argc, char* argv[])
}
}
+ switch (j->horizontal_position) {
+ case LEFT:
+ cout << "; left aligned";
+ break;
+ case CENTRE:
+ cout << "; horizontally centered";
+ break;
+ case RIGHT:
+ cout << "; right-aligned";
+ break;
+ }
+
cout << "\t";
bool italic = false;
bool underline = false;