Code cleanup, unneeded variable, always true when used, not used when

set
This commit is contained in:
Antonis Ryakiotakis 2014-07-22 11:57:03 +02:00
parent 12720352a0
commit 5215ab0acf
1 changed files with 2 additions and 4 deletions

View File

@ -592,7 +592,7 @@ static void wm_method_draw_triple(bContext *C, wmWindow *win)
bScreen *screen = win->screen;
ScrArea *sa;
ARegion *ar;
int copytex = 0, paintcursor = 1;
int copytex = 0;
if (win->drawdata) {
glClearColor(0, 0, 0, 0);
@ -639,7 +639,7 @@ static void wm_method_draw_triple(bContext *C, wmWindow *win)
wm_triple_copy_textures(win, triple);
}
if (paintcursor && wm->paintcursors.first) {
if (wm->paintcursors.first) {
for (sa = screen->areabase.first; sa; sa = sa->next) {
for (ar = sa->regionbase.first; ar; ar = ar->next) {
if (ar->swinid && ar->swinid == screen->subwinactive) {
@ -685,8 +685,6 @@ static void wm_method_draw_triple(bContext *C, wmWindow *win)
CTX_wm_menu_set(C, ar);
ED_region_do_draw(C, ar);
CTX_wm_menu_set(C, NULL);
/* when a menu is being drawn, don't do the paint cursors */
paintcursor = 0;
}
}