Commit 4502372f authored by claes's avatar claes

Grid draw improved

parent b1020a09
/*
* Proview $Id: glow_draw_gtk.cpp,v 1.7 2007-08-20 08:23:16 claes Exp $
* Proview $Id: glow_draw_gtk.cpp,v 1.8 2007-08-20 08:32:54 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -2292,13 +2292,14 @@ int GlowDrawGtk::draw_points( GlowWind *wind, glow_sPointX *points, int point_nu
set_clip( w, get_gc( this, gc_type, 0));
GdkPoint* gpoints = points_to_gdk_points( points, point_num);
gdk_draw_points( w->window,
get_gc( this, gc_type, 0),
gpoints, point_num);
if ( !w->draw_buffer_only)
gdk_draw_points( w->window,
get_gc( this, gc_type, 0),
gpoints, point_num);
if ( w->double_buffer_on)
gdk_draw_points( w->buffer,
get_gc( this, gc_type, 0),
gpoints, point_num);
get_gc( this, gc_type, 0),
gpoints, point_num);
free( gpoints);
if ( w->clip_on)
......@@ -2508,7 +2509,7 @@ int GlowDrawGtk::print( char *filename, double x0, double x1, int end)
if ( new_file) {
ps->fp <<
"%!PS-Adobe-2.0 EPSF-1.2" << endl <<
"%%Creator: Proview $Id: glow_draw_gtk.cpp,v 1.7 2007-08-20 08:23:16 claes Exp $ Glow" << endl <<
"%%Creator: Proview $Id: glow_draw_gtk.cpp,v 1.8 2007-08-20 08:32:54 claes Exp $ Glow" << endl <<
"%%EndComments" << endl << endl;
}
else
......
/*
* Proview $Id: glow_draw_xlib.cpp,v 1.7 2007-08-20 08:23:16 claes Exp $
* Proview $Id: glow_draw_xlib.cpp,v 1.8 2007-08-20 08:32:54 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -2477,9 +2477,10 @@ int GlowDrawXLib::draw_points( GlowWind *wind, glow_sPointX *points, int point_n
if ( w->clip_on)
set_clip( w, get_gc( this, gc_type, 0));
XDrawPoints( display, w->window,
get_gc( this, gc_type, 0),
(XPoint *) points, point_num, CoordModeOrigin);
if ( !w->draw_buffer_only)
XDrawPoints( display, w->window,
get_gc( this, gc_type, 0),
(XPoint *) points, point_num, CoordModeOrigin);
if ( w->double_buffer_on)
XDrawPoints( display, w->buffer,
get_gc( this, gc_type, 0),
......@@ -2720,7 +2721,7 @@ int GlowDrawXLib::print( char *filename, double x0, double x1, int end)
if ( new_file) {
ps->fp <<
"%!PS-Adobe-2.0 EPSF-1.2" << endl <<
"%%Creator: Proview $Id: glow_draw_xlib.cpp,v 1.7 2007-08-20 08:23:16 claes Exp $ Glow" << endl <<
"%%Creator: Proview $Id: glow_draw_xlib.cpp,v 1.8 2007-08-20 08:32:54 claes Exp $ Glow" << endl <<
"%%EndComments" << endl << endl;
}
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment