diff options
author | kraxel <kraxel> | 2004-11-08 13:09:20 +0000 |
---|---|---|
committer | kraxel <kraxel> | 2004-11-08 13:09:20 +0000 |
commit | ea5160192989899211ca146b985e5f3201a2875d (patch) | |
tree | 1317a61004c8d44dc7dd4e4b896d1eaf01facdd3 | |
parent | 32e9230b92d13867d4bc5a6adb04a1f0fc7c57ec (diff) | |
download | fbida-ea5160192989899211ca146b985e5f3201a2875d.tar.gz |
- fbgs: add switch to display color.
-rwxr-xr-x | fbgs | 8 | ||||
-rw-r--r-- | fbtools.c | 2 |
2 files changed, 8 insertions, 2 deletions
@@ -9,6 +9,7 @@ trap "rm -rf $DIR" EXIT fbiopts="" gsopts="" passwd="" +device="tiffpack" opt=1 while test "$opt" = "1"; do case "$1" in @@ -21,7 +22,7 @@ while test "$opt" = "1"; do -xxl) gsopts="$gsopts -r150x150" shift ;; - -q | -a) + -q | -a | --fitwidth) fbiopts="$fbiopts $1" shift ;; @@ -35,6 +36,9 @@ while test "$opt" = "1"; do -h) echo fixme: help text exit 1 ;; + -c) device="png16m" + shift + ;; -*) echo "unknown option: $1" exit 1 ;; @@ -49,7 +53,7 @@ echo "### rendering pages, please wait ... ###" echo gs -dSAVER -dNOPAUSE -dBATCH \ -sPDFPassword="$password" \ - -sDEVICE=tiffpack -sOutputFile=$DIR/ps%03d.tiff \ + -sDEVICE=${device} -sOutputFile=$DIR/ps%03d.tiff \ $gsopts \ "$1" @@ -431,6 +431,8 @@ fb_init(char *device, char *mode, int vt) perror("mmap"); goto err; } +// fprintf(stderr,"fb_mem = %p\n",fb_mem); + /* move viewport to upper left corner */ if (fb_var.xoffset != 0 || fb_var.yoffset != 0) { fb_var.xoffset = 0; |