Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Thompson <quornian@googlemail.com>2008-08-17 14:10:25 +0400
committerIan Thompson <quornian@googlemail.com>2008-08-17 14:10:25 +0400
commite93151dc397bf51ea5c25151e68741a9ff8bc5ca (patch)
tree6499e1d44ea6ebcd3fcdaebe2659d46b64311563 /source/blender/src/drawtext.c
parent3a62928777ab033373206fb57b489668aabfe932 (diff)
Fix for text area scrollbar drawing incorrectly
Diffstat (limited to 'source/blender/src/drawtext.c')
-rw-r--r--source/blender/src/drawtext.c7
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;
}