- fix for drawing buttons in fileselectors, it used an old exception

and special 'EMBOSSF' drawing function. Now complies to standard.
This commit is contained in:
2003-10-16 12:03:03 +00:00
parent a7cd8b5951
commit 77b37c9927
5 changed files with 4 additions and 59 deletions

View File

@@ -370,15 +370,11 @@ void drawoopsspace(ScrArea *sa, void *spacedata)
uiBlock *block;
Oops *oops;
int ofsx, ofsy;
char name[32];
glClearColor(0.55, 0.55, 0.55, 0.0);
glClear(GL_COLOR_BUFFER_BIT);
if(G.soops==0) return;
sprintf(name, "win %d", curarea->win);
block= uiNewBlock(&curarea->uiblocks, name, UI_EMBOSSF, UI_HELVB, curarea->win);
boundbox_oops();
calc_scrollrcts(G.v2d, curarea->winx, curarea->winy);
@@ -431,8 +427,6 @@ void drawoopsspace(ScrArea *sa, void *spacedata)
}
draw_area_emboss(sa);
uiDrawBlock(block);
curarea->win_swap= WIN_BACK_OK;
}