diff options
author | Johannes Hofmann <johannes.hofmann@gmx.de> | 2005-02-07 16:49:54 +0000 |
---|---|---|
committer | Johannes Hofmann <johannes.hofmann@gmx.de> | 2005-02-07 16:49:54 +0000 |
commit | 774d079d806b4418a7a64f559703a5fc9e46dcf4 (patch) | |
tree | 9e387795cfe650aa08dbb60fef5c6b26948e628e /src | |
parent | 0d8e5df811a61e045d0a097979c9c44bfc26e61d (diff) |
fix Warnings
fix Warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/GsWidget.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/GsWidget.cxx b/src/GsWidget.cxx index 3b7dc8e..9ede7db 100644 --- a/src/GsWidget.cxx +++ b/src/GsWidget.cxx @@ -1,5 +1,5 @@ // -// "$Id: GsWidget.cxx,v 1.14 2005/01/27 21:07:09 hofmann Exp $" +// "$Id: GsWidget.cxx,v 1.15 2005/02/07 17:49:54 hofmann Exp $" // // GsWidget routines. // @@ -66,7 +66,7 @@ void GsWidget::setProps() { atoms[3] = XInternAtom(fl_display,"PAGE" , false); atoms[4] = XInternAtom(fl_display,"DONE" , false); - snprintf(data, 512, "%lu %d %d %d %d %d %d.0 %d.0", + snprintf(data, 512, "%d %d %d %d %d %d %d.0 %d.0", 0, 0, 0, 0, paper_x, paper_y, xdpi, ydpi); int xid = fl_xid(window()); @@ -153,7 +153,7 @@ int GsWidget::load(int fd) { dup2(d_null, STDOUT_FILENO); close(d_null); dup2(in_fd, STDIN_FILENO); - snprintf(gvenv, 256, "%d %d", fl_xid(window()), offscreen); + snprintf(gvenv, 256, "%d %d", (int) fl_xid(window()), (int) offscreen); setenv("GHOSTVIEW", gvenv, 1); argv[0] = "gs"; |