code cleanup: move beauty fill calculation into its own function and some style cleanup

This commit is contained in:
2013-03-30 09:57:35 +00:00
parent b1f4e2b4db
commit 20376f3337
6 changed files with 138 additions and 124 deletions

View File

@@ -1314,7 +1314,7 @@ void ui_draw_but_NORMAL(uiBut *but, uiWidgetColors *wcol, rcti *rect)
glShadeModel(GL_SMOOTH);
gluSphere(qobj, 100.0, 32, 24);
glShadeModel(GL_FLAT);
gluDeleteQuadric(qobj);
gluDeleteQuadric(qobj);
if (use_displist) {
glEndList();