[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for pr
From: |
Ben Abbott |
Subject: |
[Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print |
Date: |
Fri, 17 Feb 2012 02:22:12 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11 |
Follow-up Comment #4, bug #33765 (project octave):
>From gl-render.cc,
void
opengl_renderer::set_linestyle (const std::string& s, bool use_stipple)
{
bool solid = false;
if (s == "-")
{
glLineStipple (1, static_cast<unsigned short> (0xFFFF));
solid = true;
}
else if (s == ":")
glLineStipple (1, static_cast<unsigned short> (0x8888));
else if (s == "--")
glLineStipple (1, static_cast<unsigned short> (0x0FFF));
else if (s == "-.")
glLineStipple (1, static_cast<unsigned short> (0x020F));
else
glLineStipple (1, static_cast<unsigned short> (0x0000));
if (solid && ! use_stipple)
glDisable (GL_LINE_STIPPLE);
else
glEnable (GL_LINE_STIPPLE);
}
void
>From gl2ps-renderer.h,
void set_linestyle (const std::string& s, bool use_stipple)
{
opengl_renderer::set_linestyle (s, use_stipple);
if (use_stipple)
gl2psEnable (GL2PS_LINE_STIPPLE);
else
gl2psDisable (GL2PS_LINE_STIPPLE);
}
This looks correct to me. Anyone see something I don't ?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33765>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Ben Abbott, 2012/02/16
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print,
Ben Abbott <=
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Rik, 2012/02/17
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Ben Abbott, 2012/02/17
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Ben Abbott, 2012/02/17
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Ben Abbott, 2012/02/17
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Rik, 2012/02/17
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Ben Abbott, 2012/02/17
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Rik, 2012/02/17
- [Octave-bug-tracker] [bug #33765] (FLTK) linestyles not respected for print, Ben Abbott, 2012/02/17