mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 02:30:44 +00:00
Turned off the line stipple and GL blending for the horizontal grids
This commit is contained in:
parent
44d0256bbc
commit
4f0f91b0c1
@ -307,7 +307,7 @@ void GLShortBuffer::draw()
|
||||
{
|
||||
if (m_cnt>0) {
|
||||
bool antialias=m_forceantialias || (PROFILE.ExistsAndTrue("UseAntiAliasing") && m_antialias);
|
||||
if (m_stippled) antialias=true;
|
||||
if (m_stippled) antialias=false;
|
||||
float size=m_size;
|
||||
if (antialias) {
|
||||
glEnable(GL_BLEND);
|
||||
@ -325,7 +325,8 @@ void GLShortBuffer::draw()
|
||||
}
|
||||
if (m_type==GL_LINES || m_type==GL_LINE_LOOP) {
|
||||
if (m_stippled) {
|
||||
glLineStipple(1, 0xcccc);
|
||||
glLineStipple(1, 0xffff);
|
||||
size=1;
|
||||
glEnable(GL_LINE_STIPPLE);
|
||||
} else {
|
||||
glLineStipple(1, 0xFFFF);
|
||||
|
@ -20,9 +20,9 @@ gXGrid::gXGrid(QColor col)
|
||||
{
|
||||
Q_UNUSED(col)
|
||||
|
||||
m_major_color=QColor(130,130,130,64);
|
||||
m_major_color=QColor(180,180,180,64);
|
||||
//m_major_color=QColor(180,180,180,92);
|
||||
m_minor_color=QColor(200,200,200,64);
|
||||
m_minor_color=QColor(230,230,230,64);
|
||||
m_show_major_lines=true;
|
||||
m_show_minor_lines=true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user