From 3eadb955ff7ad149b8a6b6912ff40983df3c7f06 Mon Sep 17 00:00:00 2001 From: Allanis Date: Sat, 9 Mar 2013 22:15:59 +0000 Subject: [PATCH] [Fix] Broken gl_drawCircleInRect --- src/opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opengl.c b/src/opengl.c index d6aad52..21869eb 100644 --- a/src/opengl.c +++ b/src/opengl.c @@ -478,7 +478,7 @@ void gl_drawCircleInRect(const double cx, const double cy, const double r, ryh = ry+rh; // Can be drawn normally. - if((x-r > rx) && (y-r > ry) && (x+r < rxw) && (y+r < ryh)) { + if((cx-r > rx) && (cy-r > ry) && (cx+r < rxw) && (cy+r < ryh)) { gl_drawCircle(cx, cy, r); return; }