From 9946ceb87761a84d885c344374cfd928c69c46a5 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 9 May 2019 16:58:42 +0200 Subject: [PATCH] fixed circle drawing --- basegraph.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/basegraph.cpp b/basegraph.cpp index 2f6d42aa..272f4e04 100644 --- a/basegraph.cpp +++ b/basegraph.cpp @@ -1024,6 +1024,7 @@ void drawCircle(int x, int y, int size, color_t color, color_t fillcolor) { glflush(); glhr::be_nontextured(); glhr::id_modelview(); + dynamicval em(pmodel, mdUnchanged); glcoords.clear(); x -= current_display->xcenter; y -= current_display->ycenter; int pts = size * 4; @@ -1033,6 +1034,7 @@ void drawCircle(int x, int y, int size, color_t color, color_t fillcolor) { float rr = (M_PI * 2 * r) / pts; glcoords.push_back(glhr::makevertex(x + size * sin(rr), y + size * vid.stretch * cos(rr), current_display->scrdist)); } + current_display->set_all(0); glhr::vertices(glcoords); glhr::set_depthtest(false); if(fillcolor) {