- 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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user