diff options
author | Ian Thompson <quornian@googlemail.com> | 2008-08-17 14:10:25 +0400 |
---|---|---|
committer | Ian Thompson <quornian@googlemail.com> | 2008-08-17 14:10:25 +0400 |
commit | e93151dc397bf51ea5c25151e68741a9ff8bc5ca (patch) | |
tree | 6499e1d44ea6ebcd3fcdaebe2659d46b64311563 /source/blender/src/drawtext.c | |
parent | 3a62928777ab033373206fb57b489668aabfe932 (diff) |
Fix for text area scrollbar drawing incorrectly
Diffstat (limited to 'source/blender/src/drawtext.c')
-rw-r--r-- | source/blender/src/drawtext.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/src/drawtext.c b/source/blender/src/drawtext.c index 05d3334b079..5a4d5feaa16 100644 --- a/source/blender/src/drawtext.c +++ b/source/blender/src/drawtext.c @@ -1627,9 +1627,6 @@ void drawtextspace(ScrArea *sa, void *spacedata) if (st==NULL || st->spacetype != SPACE_TEXT) return; - bwin_clear_viewmat(sa->win); /* clear buttons view */ - glLoadIdentity(); - BIF_GetThemeColor3fv(TH_BACK, col); glClearColor(col[0], col[1], col[2], 0.0); glClear(GL_COLOR_BUFFER_BIT); @@ -1704,6 +1701,10 @@ void drawtextspace(ScrArea *sa, void *spacedata) bwin_scalematrix(sa->win, st->blockscale, st->blockscale, st->blockscale); text_blockhandlers(sa); + + /* We end here in non-buttons scale so that the scrollbar can be drawn correctly */ + bwin_clear_viewmat(sa->win); /* clear buttons view */ + glLoadIdentity(); curarea->win_swap= WIN_BACK_OK; } |