Skip to content

Commit 15a3e1c

Browse files
committed
fix conversion warning detected with MSVC
1 parent 6b766d7 commit 15a3e1c

File tree

1 file changed

+4
-4
lines changed
  • Alpha_wrap_2/demo/Alpha_wrap_2

1 file changed

+4
-4
lines changed

Alpha_wrap_2/demo/Alpha_wrap_2/scene.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ class Scene
264264

265265
::glEnable(GL_BLEND);
266266
::glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
267-
::glColor4f(0.25,0.25,0.25,0.8);
267+
::glColor4d(0.25,0.25,0.25,0.8);
268268
::glBegin(GL_TRIANGLES);
269269
for(const Face_handle& fh2 : tr.finite_face_handles()) {
270270
if(fh2->is_outside())
@@ -458,7 +458,7 @@ class Scene
458458

459459
::glEnable(GL_BLEND);
460460
::glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
461-
::glColor4f(0.25,0.25,0.25,0.25);
461+
::glColor4d(0.25,0.25,0.25,0.25);
462462
::glLineWidth(0.5f);
463463

464464
std::vector<Gate> gates;
@@ -502,7 +502,7 @@ class Scene
502502
::glLineWidth(1.5f);
503503
gl_draw_first_empty_circle_on_the_voronoi_edge(alpha_or_max_empty_circle_sq_radius,
504504
eh2, tr, true);
505-
::glColor4f(0.25,0.25,0.25,0.25);
505+
::glColor4d(0.25,0.25,0.25,0.25);
506506
::glLineWidth(0.5f);
507507
}
508508
}
@@ -517,7 +517,7 @@ class Scene
517517
::glLineWidth(1.9f);
518518
::glEnable(GL_BLEND);
519519
::glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
520-
::glColor4f(0.25,0.25,0.25,0.8);
520+
::glColor4d(0.25,0.25,0.25,0.8);
521521
const Gate& gate = queue.top();
522522
const Edge& eh2 = gate.edge();
523523
if(gate.has_steiner_point()) {

0 commit comments

Comments
 (0)