diff options
author | Ton Roosendaal <ton@blender.org> | 2005-09-28 01:52:04 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-09-28 01:52:04 +0400 |
commit | 96253376e730cd3ffd00745e0a6c4c45c9a7adb7 (patch) | |
tree | 80b32b5d16e9ba08224f55f404ee2b6cf8c3fdec /source/blender/src/editscreen.c | |
parent | 4e64b288a427407b8ae2e5470057999056cfa894 (diff) |
Recommitted this commit yesterday, was apparently done in the wrong
directory... so the slowdown was still evident!
Maintenance commit;
- *Giant* speedup for LMB frame-dragging in ipo/action/nla windows. It was
calling a routine that accessed frontbuffer drawing.... a very old patch
for SGIs even! :)
- Prepared code for support of unlimited Shape keys
- Curve objects didnt draw correct for selection-outline option
Diffstat (limited to 'source/blender/src/editscreen.c')
-rw-r--r-- | source/blender/src/editscreen.c | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/source/blender/src/editscreen.c b/source/blender/src/editscreen.c index 4bdba721788..e484af82055 100644 --- a/source/blender/src/editscreen.c +++ b/source/blender/src/editscreen.c @@ -1101,6 +1101,31 @@ int do_screenhandlers(bScreen *sc) /* ****** end screen handlers ************ */ +static void drawscreen(void) +{ + ScrArea *sa; + + mywinset(G.curscreen->mainwin); + myortho2(-0.375, (float)G.curscreen->sizex-0.375, -0.375, (float)G.curscreen->sizey-0.375); + + sa= G.curscreen->areabase.first; + while(sa) { + drawscredge_area(sa); + sa= sa->next; + } + + /* this double draw patch seems to be needed for certain sgi's (octane, indigo2) */ + glDrawBuffer(GL_FRONT); + + sa= G.curscreen->areabase.first; + while(sa) { + drawscredge_area(sa); + sa= sa->next; + } + + glDrawBuffer(GL_BACK); +} + static void screen_dispatch_events(void) { int events_remaining= 1; ScrArea *sa; @@ -3521,31 +3546,6 @@ void drawscredge_area(ScrArea *sa) } -void drawscreen(void) -{ - ScrArea *sa; - - mywinset(G.curscreen->mainwin); - myortho2(-0.375, (float)G.curscreen->sizex-0.375, -0.375, (float)G.curscreen->sizey-0.375); - - sa= G.curscreen->areabase.first; - while(sa) { - drawscredge_area(sa); - sa= sa->next; - } - - /* this double draw patch seems to be needed for certain sgi's (octane, indigo2) */ - glDrawBuffer(GL_FRONT); - - sa= G.curscreen->areabase.first; - while(sa) { - drawscredge_area(sa); - sa= sa->next; - } - - glDrawBuffer(GL_BACK); -} - /* ********************************* */ bScreen *default_twosplit() |