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:
authorMatt Ebb <matt@mke3.net>2003-10-19 16:53:46 +0400
committerMatt Ebb <matt@mke3.net>2003-10-19 16:53:46 +0400
commitcd97a17b167c305f649ed3168df0efded53ffd7e (patch)
treeedf07f574caec03851b273bec4933b623ee87bec /source/blender/src/drawsound.c
parentc6a2f42dba65e82e32eadf0a8867a4bcd3e8b08f (diff)
- fix to prevent the following-mouse frame number display
from disappearing when mouse pointer is moved above the window space edge
Diffstat (limited to 'source/blender/src/drawsound.c')
-rw-r--r--source/blender/src/drawsound.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/src/drawsound.c b/source/blender/src/drawsound.c
index 4b129e25d9d..ba97b55e14c 100644
--- a/source/blender/src/drawsound.c
+++ b/source/blender/src/drawsound.c
@@ -155,7 +155,13 @@ static void draw_cfra_sound(SpaceSound *ssound)
/* little box with frame */
getmouseco_areawin(mval);
- if(mval[1]<17) mval[1]= 17;
+
+ if(mval[1]>curarea->winy-10) mval[1]= curarea->winy - 13;
+
+ if (curarea->winy < 25) {
+ if (mval[1]<17) mval[1]= 17;
+ } else if (mval[1]<22) mval[1]= 22;
+
areamouseco_to_ipoco(G.v2d, mval, &x, &y);
if(ssound->flag & SND_DRAWFRAMES)