diff options
author | Johannes Hofmann <johannes.hofmann@gmx.de> | 2004-06-28 17:43:16 +0000 |
---|---|---|
committer | Johannes Hofmann <johannes.hofmann@gmx.de> | 2004-06-28 17:43:16 +0000 |
commit | 5f969cbc52a0778a3b30394bd77bdeff63159ffd (patch) | |
tree | 6dece1afa40342d25c7b9883ab29e8ec4f81b6c4 /src/PSEditWidget.cxx | |
parent | 3927a541cbbf8edc69ba28abd318ac76a2d2b42d (diff) |
cleanups for Linux
cleanups for Linux
Diffstat (limited to 'src/PSEditWidget.cxx')
-rw-r--r-- | src/PSEditWidget.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/PSEditWidget.cxx b/src/PSEditWidget.cxx index 55373f5..d3c54ad 100644 --- a/src/PSEditWidget.cxx +++ b/src/PSEditWidget.cxx @@ -1,5 +1,5 @@ // -// "$Id: PSEditWidget.cxx,v 1.8 2004/06/25 18:14:05 hofmann Exp $" +// "$Id: PSEditWidget.cxx,v 1.9 2004/06/28 19:43:16 hofmann Exp $" // // PSEditWidget routines. // @@ -204,8 +204,8 @@ int PSEditWidget::load(char *f) { char *s, *e, glyph[1024]; int size, ret; - strncpy(tmpname, "/tmp/PSEditWidgetXXXXXX.ps", 256); - tmp_fd = mkstemps(tmpname, 3); + strncpy(tmpname, "/tmp/PSEditWidgetXXXXXX", 256); + tmp_fd = mkstemp(tmpname); if (tmp_fd < 0) { fprintf(stderr, "Could not create temporary file (errno %d).\n", errno); return 1; @@ -379,7 +379,7 @@ void PSText::draw(int off_x,int off_y) { fl_font(FL_HELVETICA, size); fl_draw(s, x + off_x, y + off_y); if (gsew->cur_text == this) { - fl_draw_box(FL_BORDER_FRAME, x+off_x-1, y+off_y-fl_height()+fl_descent(), fl_width(s)+2, fl_height(), FL_BLACK); + fl_draw_box(FL_BORDER_FRAME, x+off_x-1, y+off_y-fl_height()+fl_descent(), (int) fl_width(s)+2, fl_height(), FL_BLACK); } if (p->next) { p->next->draw(off_x, off_y); |