mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Fix some MSVC Windows build warnings
This commit is contained in:
parent
f4fbed527f
commit
e1ec82b0ad
@ -2743,7 +2743,7 @@ void gGraphView::renderSomethingFun(float alpha)
|
|||||||
|
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
|
|
||||||
glAlphaFunc(GL_GREATER,0.1);
|
glAlphaFunc(GL_GREATER,0.1F);
|
||||||
glEnable(GL_ALPHA_TEST);
|
glEnable(GL_ALPHA_TEST);
|
||||||
glEnable(GL_CULL_FACE);
|
glEnable(GL_CULL_FACE);
|
||||||
glDisable(GL_COLOR_MATERIAL);
|
glDisable(GL_COLOR_MATERIAL);
|
||||||
@ -2760,9 +2760,9 @@ void gGraphView::renderSomethingFun(float alpha)
|
|||||||
xx=sin(M_PI/180.0 * xpos)*2; // ((4.0/width()) * m_mouse.rx())-2.0;
|
xx=sin(M_PI/180.0 * xpos)*2; // ((4.0/width()) * m_mouse.rx())-2.0;
|
||||||
yy=cos(M_PI/180.0 * ypos)*2; //2-((4.0/height()) * m_mouse.ry());
|
yy=cos(M_PI/180.0 * ypos)*2; //2-((4.0/height()) * m_mouse.ry());
|
||||||
xpos+=1;
|
xpos+=1;
|
||||||
ypos+=1.32;
|
ypos+=1.32F;
|
||||||
if (xpos > 360) xpos-=360.0;
|
if (xpos > 360) xpos-=360.0F;
|
||||||
if (ypos > 360) ypos-=360.0;
|
if (ypos > 360) ypos-=360.0F;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -3140,7 +3140,7 @@ void gGraphView::paintGL()
|
|||||||
if (!m_inAnimation || (!m_fadingIn)) {
|
if (!m_inAnimation || (!m_fadingIn)) {
|
||||||
// Not in animation sequence, draw graphs like normal
|
// Not in animation sequence, draw graphs like normal
|
||||||
if (bereallyannoying)
|
if (bereallyannoying)
|
||||||
renderSomethingFun(0.7);
|
renderSomethingFun(0.7F);
|
||||||
|
|
||||||
numgraphs=renderGraphs();
|
numgraphs=renderGraphs();
|
||||||
|
|
||||||
@ -3573,9 +3573,9 @@ void gGraphView::wheelEvent(QWheelEvent * event)
|
|||||||
|
|
||||||
|
|
||||||
if (delta > 0)
|
if (delta > 0)
|
||||||
g->min_x-=(xx/zoom)*fabs(delta);
|
g->min_x-=(xx/zoom)*(float)abs(delta);
|
||||||
else
|
else
|
||||||
g->min_x+=(xx/zoom)*fabs(delta);
|
g->min_x+=(xx/zoom)*(float)abs(delta);
|
||||||
|
|
||||||
g->max_x=g->min_x+xx;
|
g->max_x=g->min_x+xx;
|
||||||
if (g->min_x < g->rmin_x) {
|
if (g->min_x < g->rmin_x) {
|
||||||
@ -3662,11 +3662,11 @@ void gGraphView::keyPressEvent(QKeyEvent * event)
|
|||||||
}
|
}
|
||||||
SetXBounds(g->min_x,g->max_x,group);
|
SetXBounds(g->min_x,g->max_x,group);
|
||||||
} else if (event->key()==Qt::Key_Up) {
|
} else if (event->key()==Qt::Key_Up) {
|
||||||
float zoom=0.75;
|
float zoom=0.75F;
|
||||||
if (event->modifiers() & Qt::ControlModifier) zoom/=1.5;
|
if (event->modifiers() & Qt::ControlModifier) zoom/=1.5;
|
||||||
g->ZoomX(zoom,0); // zoom in.
|
g->ZoomX(zoom,0); // zoom in.
|
||||||
} else if (event->key()==Qt::Key_Down) {
|
} else if (event->key()==Qt::Key_Down) {
|
||||||
float zoom=1.33;
|
float zoom=1.33F;
|
||||||
if (event->modifiers() & Qt::ControlModifier) zoom*=1.5;
|
if (event->modifiers() & Qt::ControlModifier) zoom*=1.5;
|
||||||
g->ZoomX(zoom,0); // Zoom out
|
g->ZoomX(zoom,0); // Zoom out
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user