Mercurial > hg > octave-nkf
comparison libinterp/corefcn/gl-render.cc @ 19096:c0fb31c46e87
Change OpenGL dashed line style to 50% mark / 50% space.
*gl-render.cc (set_linestyle): Set stipple pattern to 0xF0F0 for
50% mark / 50% space rather than previous 75% mark / 25% space.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 11 Jul 2014 13:36:12 -0700 |
parents | df972b9d080a |
children | 1288a2f27769 |
comparison
equal
deleted
inserted
replaced
19095:82773ee8119a | 19096:c0fb31c46e87 |
---|---|
2923 solid = true; | 2923 solid = true; |
2924 } | 2924 } |
2925 else if (s == ":") | 2925 else if (s == ":") |
2926 glLineStipple (1, static_cast<unsigned short> (0x8888)); | 2926 glLineStipple (1, static_cast<unsigned short> (0x8888)); |
2927 else if (s == "--") | 2927 else if (s == "--") |
2928 glLineStipple (1, static_cast<unsigned short> (0x0FFF)); | 2928 glLineStipple (1, static_cast<unsigned short> (0xF0F0)); |
2929 else if (s == "-.") | 2929 else if (s == "-.") |
2930 glLineStipple (1, static_cast<unsigned short> (0x020F)); | 2930 glLineStipple (1, static_cast<unsigned short> (0x020F)); |
2931 else | 2931 else |
2932 glLineStipple (1, static_cast<unsigned short> (0x0000)); | 2932 glLineStipple (1, static_cast<unsigned short> (0x0000)); |
2933 | 2933 |