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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2004-10-27 11:41:44 +0400
committerTon Roosendaal <ton@blender.org>2004-10-27 11:41:44 +0400
commitb7a7e5912a03508b43faf7e069bf9fc36325ec01 (patch)
tree93f94a155ff589cd00b5184c75ecde185029e944 /source
parentae76eaf9cbfc88c935e33eb23950a587155691db (diff)
Put back frontbuffer drawing for link-lines, used in the logic editor.
No quick & nice method can be found to prevent using frontbuffer for now.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/interface.c30
1 files changed, 28 insertions, 2 deletions
diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c
index bf6eb456819..0477f45be27 100644
--- a/source/blender/src/interface.c
+++ b/source/blender/src/interface.c
@@ -2844,12 +2844,38 @@ static void ui_do_active_linklines(uiBlock *block, short *mval)
}
}
- /* no frontbuffer draw anymore, redraw is fast enuf */
+ /* check for a 'found one' to prevent going to 'frontbuffer' mode.
+ this slows done gfx quite some, and at OSX the 'finish' forces a swapbuffer */
if(foundone) {
- addqueue(block->win, REDRAW, 1);
+ glDrawBuffer(GL_FRONT);
+
+ /* draw */
+ but= block->buttons.first;
+ while(but) {
+ if(but->type==LINK && but->link) {
+ line= but->link->lines.first;
+ while(line) {
+ if(line==act) {
+ if((line->flag & UI_SELECT)==0) {
+ line->flag |= UI_SELECT;
+ ui_draw_linkline(but, line);
+ }
+ }
+ else if(line->flag & UI_SELECT) {
+ line->flag &= ~UI_SELECT;
+ ui_draw_linkline(but, line);
+ }
+ line= line->next;
+ }
+ }
+ but= but->next;
+ }
+ glFlush();
+ glDrawBuffer(GL_BACK);
}
}
+
/* only to be used to prevent an 'outside' event when using nested pulldowns */
/* four checks:
- while mouse moves in good x direction