From: Matthew Fernandez Date: Wed, 4 May 2022 15:45:57 +0000 (-0700) Subject: glcomp: remove unnecessary 'GLfloat' casts X-Git-Tag: 4.0.0~47^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44024a1e0372da4fbe26ff87adb287d350333287;p=graphviz glcomp: remove unnecessary 'GLfloat' casts These values are already `GLfloat`s. --- diff --git a/lib/glcomp/glcomppanel.c b/lib/glcomp/glcomppanel.c index 7ede96f9d..234283e84 100644 --- a/lib/glcomp/glcomppanel.c +++ b/lib/glcomp/glcomppanel.c @@ -62,8 +62,8 @@ int glCompPanelDraw(glCompObj * o) if (!p->common.visible) return 0; /*draw shadow */ - glColor4f((GLfloat) p->shadowcolor.R, (GLfloat) p->shadowcolor.G, - (GLfloat) p->shadowcolor.B, (GLfloat) p->shadowcolor.A); + glColor4f(p->shadowcolor.R, p->shadowcolor.G, p->shadowcolor.B, + p->shadowcolor.A); r.h = p->shadowwidth; r.w = ref.width; r.pos.x = ref.pos.x + p->shadowwidth;